pub enum Keyword {
Show 22 variants
And,
False,
True,
ForLoopInit,
ConditionalCheck,
ConditionalElse,
EmptyValue,
Or,
Print,
VariableDeclaration,
WhileLoopInit,
OpenBrace,
CloseBrace,
Equal,
Greater,
GreaterEqual,
EqualEqual,
BangEqual,
Bang,
Less,
LessEqual,
FuncDec,
}
Expand description
All valid keywords (they change a lot so these enum names are the “root” of what they represent)
Variants§
And
and
False
false
True
true
ForLoopInit
for
ConditionalCheck
if
ConditionalElse
else
EmptyValue
nil, null, None
Or
or
print to standard out
VariableDeclaration
var
WhileLoopInit
while
OpenBrace
{
CloseBrace
}
Equal
=
Greater
GreaterEqual
=
EqualEqual
==
BangEqual
!=
Bang
!
Less
<
LessEqual
<=
FuncDec
Function declaration
Implementations§
Trait Implementations§
impl Copy for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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