Struct css_module_lexer::Lexer
source · pub struct Lexer<'s> { /* private fields */ }
Implementations§
source§impl<'s> Lexer<'s>
impl<'s> Lexer<'s>
pub fn consume(&mut self) -> Option<char>
pub fn cur_pos(&self) -> Option<Pos>
pub fn cur(&self) -> Option<char>
pub fn peek_pos(&self) -> Option<Pos>
pub fn peek(&self) -> Option<char>
pub fn peek2_pos(&self) -> Option<Pos>
pub fn peek2(&self) -> Option<char>
pub fn slice(&self, start: Pos, end: Pos) -> Option<&'s str>
source§impl<'s> Lexer<'s>
impl<'s> Lexer<'s>
pub fn lex<T: Visitor<'s>>(&mut self, visitor: &mut T)
pub fn consume_comments(&mut self) -> Option<()>
pub fn consume_delim(&mut self) -> Option<()>
pub fn consume_space(&mut self) -> Option<()>
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<()>
pub fn consume_white_space_and_comments(&mut self) -> Option<()>
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> 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