Struct ParseOptions
pub struct ParseOptions {
pub propagate_positions: bool,
}Expand description
Per-parse options.
Fields§
§propagate_positions: boolCompute per-node crate::model::Meta with Lark’s container fallback.
On: every Tree gets a
crate::model::Meta in ParsedTree::meta_arena (Empty or
Positioned), computed reduce-time from the raw children so filter_out
edge tokens still bound a node’s span (see lalr::materialize). Off:
zero-cost — no scan runs, meta_arena stays empty, every
Tree.meta = MetaIdx::NONE.
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
§impl Default for ParseOptions
impl Default for ParseOptions
§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
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