pub struct CssParser;Expand description
Parser for CSS files.
Implementations§
Source§impl CssParser
impl CssParser
Sourcepub fn extract_tokens(&mut self, css_content: &str) -> Result<HashSet<String>>
pub fn extract_tokens(&mut self, css_content: &str) -> Result<HashSet<String>>
Extract CSS custom property token names used via var() in the given CSS.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CssParser
impl RefUnwindSafe for CssParser
impl Send for CssParser
impl Sync for CssParser
impl Unpin for CssParser
impl UnsafeUnpin for CssParser
impl UnwindSafe for CssParser
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