Struct silkenweb_css::Css
source · pub struct Css { /* private fields */ }Implementations§
source§impl Css
impl Css
pub fn from_content( content: impl Into<String>, syntax: CssSyntax ) -> Result<Self, Error>
pub fn from_path( path: impl AsRef<Path>, syntax: Option<CssSyntax> ) -> Result<Self, Error>
pub fn transpile( &mut self, validate: bool, transpile: Option<Transpile> ) -> Result<Option<Vec<NameMapping>>, TranspileError>
pub fn dependency(&self) -> Option<&str>
pub fn content(&self) -> &str
pub fn class_names(&self) -> impl Iterator<Item = String>
pub fn variable_names(&self) -> impl Iterator<Item = String>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Css
impl Send for Css
impl Sync for Css
impl Unpin for Css
impl UnwindSafe for Css
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more