pub enum Rule {
Show 132 variants
EOI,
WHITESPACE,
COMMENT,
keyword,
identifier,
integer,
float,
boolean,
string_lit,
inner_str,
semicolon,
static_path,
program,
visibility,
mutable,
var,
unexpected_statement,
generic_decl,
generics_decl,
generic,
generics,
tuple_type,
path_type,
ref_type,
dyn_type,
type_expr,
lifetime,
type_expr_param,
literal,
tuple_pattern,
named_tuple_pattern,
struct_pattern,
pattern,
attribute,
mod_attribute,
meta,
meta_list,
attributes,
var_decl,
field,
field_list,
param_list,
import,
mod_package,
struct_decl,
enum_named,
enum_tuple,
enum_struct,
enum_field,
enum_fields,
enum_decl,
class_constructor,
class_fields,
class_field,
self_param,
method,
class_item,
class_decl,
impl_for_decl,
impl_decl,
trait_requirements,
method_no_body,
trait_item,
trait_decl,
function_decl,
top_level,
block,
statement,
expr_stmt,
return_stmt,
break_stmt,
continue_stmt,
var_decl_statement,
increment_statement,
decrement_statement,
compound_assign,
assign_statement,
statement_branch,
else_if,
else_if_list,
if_stmt,
while_stmt,
c_for_stmt,
for_stmt,
pattern_list,
match_item,
match_stmt,
tuple,
array,
macro_inner_v,
expr_path_segment,
expr_path,
primary,
field_px,
call_px,
macro_call_px,
struct_field_decl,
struct_px,
index_px,
as_px,
try_px,
postfix,
deref_px,
mut_ref_px,
ref_px,
new_px,
not_px,
neg_px,
prefix,
shl,
shr,
range_inc,
range_exc,
lte,
gte,
eq,
neq,
and,
or,
add,
sub,
mul,
div,
rem,
lt,
gt,
bitand,
bitor,
bitxor,
bin_op,
expr,
term,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
keyword
identifier
integer
float
boolean
string_lit
inner_str
semicolon
static_path
program
visibility
mutable
var
unexpected_statement
generic_decl
generics_decl
generic
generics
tuple_type
path_type
ref_type
dyn_type
type_expr
lifetime
type_expr_param
literal
tuple_pattern
named_tuple_pattern
struct_pattern
pattern
attribute
mod_attribute
meta
meta_list
attributes
var_decl
field
field_list
param_list
import
mod_package
struct_decl
enum_named
enum_tuple
enum_struct
enum_field
enum_fields
enum_decl
class_constructor
class_fields
class_field
self_param
method
class_item
class_decl
impl_for_decl
impl_decl
trait_requirements
method_no_body
trait_item
trait_decl
function_decl
top_level
block
statement
expr_stmt
return_stmt
break_stmt
continue_stmt
var_decl_statement
increment_statement
decrement_statement
compound_assign
assign_statement
statement_branch
else_if
else_if_list
if_stmt
while_stmt
c_for_stmt
for_stmt
pattern_list
match_item
match_stmt
tuple
array
macro_inner_v
expr_path_segment
expr_path
primary
field_px
call_px
macro_call_px
struct_field_decl
struct_px
index_px
as_px
try_px
postfix
deref_px
mut_ref_px
ref_px
new_px
not_px
neg_px
prefix
shl
shr
range_inc
range_exc
lte
gte
eq
neq
and
or
add
sub
mul
div
rem
lt
gt
bitand
bitor
bitxor
bin_op
expr
term
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parser<Rule> for MistParser
impl Parser<Rule> for MistParser
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