Download next.js/turbopack/crates/turbopack-css/src/lifetime_util.rs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-css/src/lifetime_util.rs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbopack/crates/turbopack-css/src/lifetime_util.rs
-
curl -L -o lifetime_util.rs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-css/src/lifetime_util.rs
355 Bytes
| use lightningcss::{ | |
| stylesheet::{ParserOptions, StyleSheet}, | |
| traits::IntoOwned, | |
| }; | |
| pub fn stylesheet_into_static<'i, 'o>( | |
| ss: &StyleSheet, | |
| options: ParserOptions<'o, 'i>, | |
| ) -> StyleSheet<'i, 'o> { | |
| let sources = ss.sources.clone(); | |
| let rules = ss.rules.clone().into_owned(); | |
| // | |
| StyleSheet::new(sources, rules, options) | |
| } | |