pub enum Token {
Show 14 variants
Frac,
Super,
Sub,
Sep,
Number,
Text,
Ident,
Symbol,
Function,
Unary,
Binary,
OpenBracket,
CloseBracket,
OpenCloseBracket,
}
Expand description
A parsed token label
Variants§
Frac
A token indicating a fraction that has the lowest precedence /
Super
A token indicating a superscript ^
Sub
A token indicating a subscript _
Sep
A token indicating the separation of rows and cols in matrices ,
Number
A number
Text
Quoted text
Ident
A raw identifier
Symbol
A defined symbol token
Function
A function
Unary
A unary operation
Binary
A binary operation
OpenBracket
An opening bracket
CloseBracket
A closing bracket
OpenCloseBracket
A bracket that can either open or close
Trait Implementations§
impl Copy for Token
impl Eq for Token
impl StructuralPartialEq for Token
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