pub struct LexerStats {
pub unreads: usize,
pub chars: usize,
pub matches: usize,
}Expand description
Statistics collected by the lexer during processing.
Tracks basic metrics about lexer activity and performance. Typically generated and updated internally by the parlex-gen lexer generator (Alex).
Fields§
§unreads: usizeThe number of characters that were unread or pushed back into the stream.
chars: usizeThe total number of characters processed by the lexer.
matches: usizeThe number of successful token matches produced.
Trait Implementations§
Source§impl Clone for LexerStats
impl Clone for LexerStats
Source§fn clone(&self) -> LexerStats
fn clone(&self) -> LexerStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexerStats
impl Debug for LexerStats
Source§impl Default for LexerStats
impl Default for LexerStats
Source§fn default() -> LexerStats
fn default() -> LexerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LexerStats
impl RefUnwindSafe for LexerStats
impl Send for LexerStats
impl Sync for LexerStats
impl Unpin for LexerStats
impl UnwindSafe for LexerStats
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