pub enum TokenKind {
Show 13 variants
Ident(VarName),
KwLet,
KwIn,
KwFix,
KwRef,
Lambda,
Dot,
Equals,
LParen,
RParen,
Bang,
Assign,
Semicolon,
}Expand description
The syntactic kind of a token.
Variants§
Ident(VarName)
An identifier that is not a reserved keyword.
KwLet
The let keyword.
KwIn
The in keyword.
KwFix
The fix keyword.
KwRef
The ref keyword (allocation prefix).
Lambda
A lambda head, written \.
Dot
A dot . separating a lambda head from its body.
Equals
An equals sign = (let-binding).
LParen
An opening parenthesis (.
RParen
A closing parenthesis ).
Bang
A bang ! (dereference prefix).
Assign
An assignment :=.
Semicolon
A semicolon ; (sequencing).
Trait Implementations§
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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