pub struct Lexer<'s, I: Iterator<Item = char> = Chars<'s>> { /* private fields */ }
Implementations§
Source§impl<'s> Lexer<'s>
impl<'s> Lexer<'s>
pub fn lex<T: Visitor<'s>>(&mut self, visitor: &mut T)
pub fn consume_delim(&mut self)
pub fn consume_numeric_token(&mut self) -> Option<()>
pub fn consume_number(&mut self) -> Option<()>
pub fn consume_ident_sequence(&mut self) -> Option<()>
pub fn consume_escaped(&mut self) -> Option<()>
pub fn consume_ident_like<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_url<T: Visitor<'s>>( self: &mut Lexer<'s>, visitor: &mut T, start: Pos, ) -> Option<()>
pub fn consume_string<T: Visitor<'s>>( &mut self, visitor: &mut T, end: char, ) -> Option<()>
pub fn consume_number_sign<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_left_parenthesis<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_right_parenthesis<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_plus_sign(&mut self) -> Option<()>
pub fn consume_comma<T: Visitor<'s>>(&mut self, visitor: &mut T) -> Option<()>
pub fn consume_minus<T: Visitor<'s>>(&mut self, visitor: &mut T) -> Option<()>
pub fn consume_full_stop<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_potential_pseudo<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_semicolon<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_less_than_sign(&mut self) -> Option<()>
pub fn consume_at_sign<T: Visitor<'s>>(&mut self, visitor: &mut T) -> Option<()>
pub fn consume_reverse_solidus<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_left_curly<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
pub fn consume_right_curly<T: Visitor<'s>>( &mut self, visitor: &mut T, ) -> Option<()>
Trait Implementations§
Auto Trait Implementations§
impl<'s, I> Freeze for Lexer<'s, I>where
I: Freeze,
impl<'s, I> RefUnwindSafe for Lexer<'s, I>where
I: RefUnwindSafe,
impl<'s, I> Send for Lexer<'s, I>where
I: Send,
impl<'s, I> Sync for Lexer<'s, I>where
I: Sync,
impl<'s, I> Unpin for Lexer<'s, I>where
I: Unpin,
impl<'s, I> UnwindSafe for Lexer<'s, I>where
I: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)