pub struct Lexer<'s, V: LexerVisitor = ()> { /* private fields */ }Implementations§
Source§impl<'s, V: LexerVisitor> Lexer<'s, V>
impl<'s, V: LexerVisitor> Lexer<'s, V>
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, V> Freeze for Lexer<'s, V>where
V: Freeze,
impl<'s, V> RefUnwindSafe for Lexer<'s, V>where
V: RefUnwindSafe,
impl<'s, V> Send for Lexer<'s, V>where
V: Send,
impl<'s, V> Sync for Lexer<'s, V>where
V: Sync,
impl<'s, V> Unpin for Lexer<'s, V>where
V: Unpin,
impl<'s, V> UnsafeUnpin for Lexer<'s, V>where
V: UnsafeUnpin,
impl<'s, V> UnwindSafe for Lexer<'s, V>where
V: UnwindSafe,
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