Enum Ambiguity
#[non_exhaustive]pub enum Ambiguity {
Resolve,
Explicit,
}Expand description
Lark(..., ambiguity=…). v1 = Resolve (default: pick one
derivation by summed priority) | Explicit (wrap every derivation in
_ambig/_iambig/_inter Trees). 'forest' (raw SPPF) is deferred from v1;
#[non_exhaustive] lets Forest land additively later.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for Ambiguity
impl Eq for Ambiguity
impl StructuralPartialEq for Ambiguity
Auto Trait Implementations§
impl Freeze for Ambiguity
impl RefUnwindSafe for Ambiguity
impl Send for Ambiguity
impl Sync for Ambiguity
impl Unpin for Ambiguity
impl UnsafeUnpin for Ambiguity
impl UnwindSafe for Ambiguity
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