pub struct Lexer<'s> { /* private fields */ }Implementations§
Source§impl<'s> Lexer<'s>
impl<'s> Lexer<'s>
Sourcepub fn next_token(&mut self) -> Token
pub fn next_token(&mut self) -> Token
Return the next CSS token without allocating or decoding its value.
TokenKind::Eof is returned after the input is exhausted. Unterminated
comments, strings, and URLs are represented by the corresponding
Bad* token kinds, so EOF and tokenizer errors are never conflated.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Lexer<'s>
impl<'s> RefUnwindSafe for Lexer<'s>
impl<'s> Send for Lexer<'s>
impl<'s> Sync for Lexer<'s>
impl<'s> Unpin for Lexer<'s>
impl<'s> UnsafeUnpin for Lexer<'s>
impl<'s> UnwindSafe for Lexer<'s>
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