1 2 3 4 5 6 7 8 9 10 11 12
pub struct CascadingStyleSheet(String); impl CascadingStyleSheet { pub fn create(text: String) -> Self { CascadingStyleSheet(text) } } impl From<CascadingStyleSheet> for String { fn from(value: CascadingStyleSheet) -> Self { value.0 } }