pub enum TokenKind {
Tee,
Corner,
Word,
When,
Given,
It,
}Expand description
The type of a token.
Variants§
Tee
A token representing the ├ character.
Corner
A token representing the └ character.
Word
A token representing a string.
For example, in the text foo bar, both foo and bar are
Word tokens.
When
A token representing a when keyword.
Given
A token representing a given keyword.
It
A token representing an it keyword.
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 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