pub enum SourceMode {
Materialize,
Incremental {
prune: Prune,
},
}Expand description
How ParserSource produces its events.
Variants§
Materialize
Parse the whole text, then walk the value. Sound for every grammar.
Incremental
Emit from the engine’s rule events as the parse proceeds. Sound for
the grammars capability::incremental lists.
Trait Implementations§
Source§impl Clone for SourceMode
impl Clone for SourceMode
Source§impl Debug for SourceMode
impl Debug for SourceMode
impl Eq for SourceMode
Source§impl PartialEq for SourceMode
impl PartialEq for SourceMode
impl StructuralPartialEq for SourceMode
Auto Trait Implementations§
impl Freeze for SourceMode
impl RefUnwindSafe for SourceMode
impl Send for SourceMode
impl Sync for SourceMode
impl Unpin for SourceMode
impl UnsafeUnpin for SourceMode
impl UnwindSafe for SourceMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.