pub struct ParserStats {
pub tokens: usize,
pub shifts: usize,
pub reductions: usize,
pub ambigs: usize,
}Expand description
Statistics collected during the parsing process.
Tracks basic metrics about parser activity and performance.
Fields§
§tokens: usizeThe total number of tokens processed by the parser.
shifts: usizeThe number of shift actions performed.
reductions: usizeThe number of reduce actions performed.
ambigs: usizeThe number of ambiguities encountered.
Trait Implementations§
Source§impl Clone for ParserStats
impl Clone for ParserStats
Source§fn clone(&self) -> ParserStats
fn clone(&self) -> ParserStats
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 ParserStats
impl Debug for ParserStats
Source§impl Default for ParserStats
impl Default for ParserStats
Source§fn default() -> ParserStats
fn default() -> ParserStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParserStats
impl RefUnwindSafe for ParserStats
impl Send for ParserStats
impl Sync for ParserStats
impl Unpin for ParserStats
impl UnwindSafe for ParserStats
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