Struct ielr::output::Statistics
source · pub struct Statistics {
pub lalr_states_count: usize,
pub lr1_states_count: usize,
pub conflict_resolution_used: Vec<usize>,
pub algorithm_needed: Algorithm,
}
Expand description
Statistics gathered while running the IELR algorithm.
Fields§
§lalr_states_count: usize
Number of states in the LALR state machine.
lr1_states_count: usize
Number of states added while using LR(1).
conflict_resolution_used: Vec<usize>
The indices in Grammar::conflict_solutions
of the solutions used during the
algorithm.
Users may be interested in solution not used, since they were useless during the algorithm.
algorithm_needed: Algorithm
What level of the algorithm was used in case of success.
Trait Implementations§
source§impl Clone for Statistics
impl Clone for Statistics
source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
Returns a copy 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 RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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