pub enum TokenKind {
Num {
val: BigUrational,
input_base: u32,
},
Ident(IdentKind),
Plus,
Minus,
Times,
Slash,
Hat,
OpenParen,
CloseParen,
}
Expand description
Tokens are simple things like numbers, operators, parentheses, and so on.
Variants
Num
Ident(IdentKind)
Plus
Minus
Times
Slash
Hat
OpenParen
CloseParen
Implementations
Trait Implementations
impl Eq for TokenKind
impl StructuralEq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more