pub enum Token {
Show 29 variants
OpenParen,
CloseParen,
Comma,
Semicolon,
Colon,
Whitespace,
GreaterThan,
LessThan,
Exclamation,
Quote,
DoubleQuote,
Equal,
Plus,
Dash,
Slash,
Star,
Percent,
Ampersand,
Pipe,
Caret,
Tilde,
Dot,
Question,
At,
Hash,
Dollar,
Backslash,
Underscore,
Sharp,
}Expand description
The token type
Variants§
OpenParen
The “(” character
CloseParen
The ) character
Comma
The , character
Semicolon
The ; character
Colon
The : character
Whitespace
The whitespace character
GreaterThan
The > character
LessThan
The < character
Exclamation
The ! character
Quote
The ' character
DoubleQuote
The " character
Equal
The = character
Plus
The + character
Dash
The - character
Slash
The / character
Star
The * character
Percent
The % character
Ampersand
The & character
Pipe
The | character
Caret
The ^ character
Tilde
The ~ character
Dot
The . character
Question
The ? character
At
The @ character
Hash
The # character
Dollar
The $ character
Backslash
The \\ character
Underscore
The _ character
Sharp
The # character
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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