pub enum PredictionMode {
Ll,
Sll,
LlExactAmbigDetection,
}Expand description
Prediction strategy requested by generated parser harnesses.
Variants§
Ll
Prefer the clean full-context outcome when alternatives reach the same input position.
Sll
Preserve SLL’s first-viable alternative bias at a decision, even when a later full-context alternative could avoid recovery.
LlExactAmbigDetection
Full LL prediction with exact ambiguity detection for diagnostic runs.
Trait Implementations§
Source§impl Clone for PredictionMode
impl Clone for PredictionMode
Source§fn clone(&self) -> PredictionMode
fn clone(&self) -> PredictionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PredictionMode
Source§impl Debug for PredictionMode
impl Debug for PredictionMode
impl Eq for PredictionMode
Source§impl PartialEq for PredictionMode
impl PartialEq for PredictionMode
Source§fn eq(&self, other: &PredictionMode) -> bool
fn eq(&self, other: &PredictionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PredictionMode
Auto Trait Implementations§
impl Freeze for PredictionMode
impl RefUnwindSafe for PredictionMode
impl Send for PredictionMode
impl Sync for PredictionMode
impl Unpin for PredictionMode
impl UnsafeUnpin for PredictionMode
impl UnwindSafe for PredictionMode
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