pub struct ScannerStats {
pub input_length: usize,
pub chars_processed: usize,
pub tokens_allocated: usize,
pub tokens_used: usize,
pub position: Position,
}Expand description
Statistics about scanner performance
Fields§
§input_length: usizeTotal input length in bytes
chars_processed: usizeNumber of characters processed
tokens_allocated: usizeNumber of tokens allocated in the pool
tokens_used: usizeNumber of tokens currently used
position: PositionCurrent position
Trait Implementations§
Source§impl Clone for ScannerStats
impl Clone for ScannerStats
Source§fn clone(&self) -> ScannerStats
fn clone(&self) -> ScannerStats
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 moreAuto Trait Implementations§
impl Freeze for ScannerStats
impl RefUnwindSafe for ScannerStats
impl Send for ScannerStats
impl Sync for ScannerStats
impl Unpin for ScannerStats
impl UnwindSafe for ScannerStats
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