pub enum BacktrackingSeverity {
None,
Linear,
Exponential,
}Expand description
Severity of a backtracking issue
Variants§
None
No shared prefix between alternatives
Linear
Shared prefix exists but contains no recursion (O(k*n) worst case)
Exponential
Shared prefix contains recursive rules (O(2^n) worst case)
Trait Implementations§
Source§impl Clone for BacktrackingSeverity
impl Clone for BacktrackingSeverity
Source§fn clone(&self) -> BacktrackingSeverity
fn clone(&self) -> BacktrackingSeverity
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 BacktrackingSeverity
impl Debug for BacktrackingSeverity
Source§impl PartialEq for BacktrackingSeverity
impl PartialEq for BacktrackingSeverity
impl Copy for BacktrackingSeverity
impl Eq for BacktrackingSeverity
impl StructuralPartialEq for BacktrackingSeverity
Auto Trait Implementations§
impl Freeze for BacktrackingSeverity
impl RefUnwindSafe for BacktrackingSeverity
impl Send for BacktrackingSeverity
impl Sync for BacktrackingSeverity
impl Unpin for BacktrackingSeverity
impl UnsafeUnpin for BacktrackingSeverity
impl UnwindSafe for BacktrackingSeverity
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