pub enum Rule {
Show 53 variants
EOI,
WHITESPACE,
COMMENT,
ident,
number,
band_ref,
let_kw,
fn_kw,
if_kw,
then_kw,
else_kw,
for_kw,
in_kw,
return_kw,
add_op,
sub_op,
mul_op,
div_op,
mod_op,
pow_op,
eq_op,
ne_op,
le_op,
ge_op,
lt_op,
gt_op,
and_op,
or_op,
not_op,
program,
statement,
variable_decl,
function_decl,
param_list,
return_stmt,
expr_stmt,
expression,
logical_or,
logical_and,
logical_not,
comparison,
additive,
multiplicative,
power,
unary,
primary,
function_call,
arg_list,
variable_ref,
conditional,
block,
range,
for_loop,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
ident
number
band_ref
let_kw
fn_kw
if_kw
then_kw
else_kw
for_kw
in_kw
return_kw
add_op
sub_op
mul_op
div_op
mod_op
pow_op
eq_op
ne_op
le_op
ge_op
lt_op
gt_op
and_op
or_op
not_op
program
statement
variable_decl
function_decl
param_list
return_stmt
expr_stmt
expression
logical_or
logical_and
logical_not
comparison
additive
multiplicative
power
unary
primary
function_call
arg_list
variable_ref
conditional
block
range
for_loop
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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