Struct css_module_lexer::Lexer
source · pub struct Lexer<'s> { /* private fields */ }
Implementations§
source§impl Lexer<'_>
impl Lexer<'_>
pub fn consume(&mut self) -> Option<char>
pub fn cur_pos(&self) -> Option<usize>
pub fn cur(&self) -> Option<char>
pub fn peek_pos(&self) -> Option<usize>
pub fn peek(&self) -> Option<char>
pub fn peek2_pos(&self) -> Option<usize>
pub fn peek2(&self) -> Option<char>
pub fn slice(&self, start: usize, end: usize) -> Option<&str>
pub fn is_eof(&self) -> bool
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