Enum badder_lang::Token
source · pub enum Token {
}
Variants§
Num(Int)
Id(SmolStr)
Pls
Sub
Mul
Div
OpnBrace
ClsBrace
Ass
OpAss(Box<Token>)
Gt
GtEq
Lt
LtEq
Mod
OpnSqr
ClsSqr
Square
Eol
Eof
Var
Keywords
If
Else
And
Or
Not
Is
Indent(usize)
Loop
While
For
In
Break
Continue
Fun
Return
Comma
Dot
Seq
Implementations§
Trait Implementations§
source§impl PartialEq for Token
impl PartialEq for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.