pub enum SymbolAtOffset<'a> {
RuleDefinition(&'a RuleInfo),
RuleReference {
name: String,
span: (usize, usize),
},
}Expand description
What lives at a given byte offset?
Variants§
RuleDefinition(&'a RuleInfo)
Cursor is on the LHS definition of a rule.
RuleReference
Cursor is on a nonterminal reference in some rule’s RHS.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SymbolAtOffset<'a>
impl<'a> RefUnwindSafe for SymbolAtOffset<'a>
impl<'a> Send for SymbolAtOffset<'a>
impl<'a> Sync for SymbolAtOffset<'a>
impl<'a> Unpin for SymbolAtOffset<'a>
impl<'a> UnsafeUnpin for SymbolAtOffset<'a>
impl<'a> UnwindSafe for SymbolAtOffset<'a>
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