pub struct Parser<'a> { /* private fields */ }Expand description
CSS parser. Buffers all tokens for nesting disambiguation.
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn parse_stylesheet(input: &'a str) -> (Stylesheet<'a>, Vec<ParseError>)
pub fn parse_declaration_list( input: &'a str, ) -> (Vec<Declaration<'a>>, Vec<ParseError>)
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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