pub enum TokenRole {
DeclStart,
TacticKeyword,
TypeLevel,
TermLevel,
Punctuation,
Name,
Literal,
Eof,
Error,
}Expand description
The broad role of a token in OxiLean syntax.
Variants§
DeclStart
A declaration-starting keyword.
TacticKeyword
A proof/tactic keyword.
TypeLevel
A type-level keyword.
TermLevel
A term-level keyword.
Punctuation
A punctuation/operator token.
Name
A name or identifier.
Literal
A literal value.
Eof
An end-of-input marker.
Error
An error token.
Trait Implementations§
impl Copy for TokenRole
impl Eq for TokenRole
impl StructuralPartialEq for TokenRole
Auto Trait Implementations§
impl Freeze for TokenRole
impl RefUnwindSafe for TokenRole
impl Send for TokenRole
impl Sync for TokenRole
impl Unpin for TokenRole
impl UnsafeUnpin for TokenRole
impl UnwindSafe for TokenRole
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