pub struct Lexer {
pub stream_end: bool,
/* private fields */
}
Fields§
§stream_end: bool
Implementations§
source§impl Lexer
impl Lexer
pub fn fetch_next_token<B, R: Reader<B>>(&mut self, reader: &mut R)
pub const fn get_default_namespace( namespace: &[u8] ) -> Option<Cow<'static, [u8]>>
pub fn curr_state(&self) -> LexerState
pub fn prev_state(&self) -> LexerState
pub fn set_block_state(&mut self, state: LexerState, read_line: u32)
pub fn set_state(&mut self, state: LexerState)
pub fn pop_token(&mut self) -> Option<usize>
pub fn indent(&self) -> u32
pub fn tokens(self) -> VecDeque<usize>
pub fn peek_token(&mut self) -> Option<usize>
pub fn peek_token_next(&mut self) -> Option<usize>
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnwindSafe for Lexer
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