Enum ResolvedLexer
pub enum ResolvedLexer {
Basic,
Contextual,
Dynamic,
DynamicComplete,
Custom,
}Expand description
What auto (or an explicit spec) resolves to. Dynamic/DynamicComplete
are Earley-only; the LALR engine never sees them (the matrix rejects the
pairing first).
Variants§
Basic
Contextual
Dynamic
DynamicComplete
Custom
Custom token source — valid under both parsers, since a custom lexer
bypasses the parser×lexer matrix. auto never resolves here.
Trait Implementations§
§impl Clone for ResolvedLexer
impl Clone for ResolvedLexer
§fn clone(&self) -> ResolvedLexer
fn clone(&self) -> ResolvedLexer
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 ResolvedLexer
§impl Debug for ResolvedLexer
impl Debug for ResolvedLexer
impl Eq for ResolvedLexer
§impl PartialEq for ResolvedLexer
impl PartialEq for ResolvedLexer
impl StructuralPartialEq for ResolvedLexer
Auto Trait Implementations§
impl Freeze for ResolvedLexer
impl RefUnwindSafe for ResolvedLexer
impl Send for ResolvedLexer
impl Sync for ResolvedLexer
impl Unpin for ResolvedLexer
impl UnsafeUnpin for ResolvedLexer
impl UnwindSafe for ResolvedLexer
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