Struct EarleyParseOptions
pub struct EarleyParseOptions {
pub propagate_positions: bool,
pub ambiguity: Ambiguity,
}Expand description
Per-parse Earley options. Mirrors crate::ParseOptions (LALR) plus the
ambiguity field the Earley engine alone honors (Lark’s ambiguity=).
Earley owns its own options type — LALR’s has no
ambiguity and lives behind the engine boundary.
Fields§
§propagate_positions: boolCompute per-node crate::model::Meta,
delegated through the chain’s shared position core.
ambiguity: AmbiguityResolve (pick one derivation by summed priority) | Explicit (wrap
derivations in _ambig/_iambig/_inter). Forest is deferred from v1.
Trait Implementations§
§impl Clone for ParseOptions
impl Clone for ParseOptions
§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
§impl Debug for ParseOptions
impl Debug for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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