pub enum Rule {
Show 117 variants
EOI,
ws,
alpha_lower,
alpha_upper,
alpha,
digit,
COMMENT,
single_line_comment,
doc_comment,
multi_line_comment,
identifier_part,
identifier_body,
keywords,
identifier,
number,
int,
exp,
number_literal,
integer_literal,
format_string,
string_literal_inner,
bracket_escape,
escape,
unicode,
format_expression,
format_spec,
format_spec_precision,
format_spec_width,
bool_literal,
unit,
literal,
qualified_name,
type,
base_type,
quantity_type,
type_annotation,
array_type,
tuple_type,
tuple_type_element,
matrix_type,
range_start,
range_end,
range_expression,
array_expression,
array_element_access,
tuple_expression,
tuple_element_access,
attribute_access,
element_access,
visibility,
use_statement,
use_declaration,
use_all,
use_alias,
expression,
bin_op,
add,
subtract,
multiply,
divide,
union,
intersect,
power_xor,
greater_than,
less_than,
greater_equal,
less_equal,
equal,
near,
not_equal,
and,
or,
xor,
if_binary_op,
else_binary_op,
unary_op,
unary_minus,
unary_plus,
unary_not,
postfix,
primary,
list_expression,
expression_statement,
final_expression_statement,
named_argument,
positional_argument,
argument,
argument_list,
call_op,
method_call,
call,
attribute_item,
attribute_command,
attribute_command_list,
attribute,
inner_attribute,
inner_attribute_statement,
attribute_list,
qualifier,
assignment,
assignment_statement,
marker,
parameter,
parameter_list,
function_signature,
function_definition,
return_statement,
if_statement,
doc_block,
workbench_kind,
workbench_definition,
body,
init_definition,
module_definition,
statement,
statement_list,
source_file,
}
Variants§
EOI
End-of-input
ws
alpha_lower
alpha_upper
alpha
digit
COMMENT
single_line_comment
doc_comment
multi_line_comment
identifier_part
identifier_body
keywords
identifier
number
int
exp
number_literal
integer_literal
format_string
string_literal_inner
bracket_escape
escape
unicode
format_expression
format_spec
format_spec_precision
format_spec_width
bool_literal
unit
literal
qualified_name
type
base_type
quantity_type
type_annotation
array_type
tuple_type
tuple_type_element
matrix_type
range_start
range_end
range_expression
array_expression
array_element_access
tuple_expression
tuple_element_access
attribute_access
element_access
visibility
use_statement
use_declaration
use_all
use_alias
expression
bin_op
add
subtract
multiply
divide
union
intersect
power_xor
greater_than
less_than
greater_equal
less_equal
equal
near
not_equal
and
or
xor
if_binary_op
else_binary_op
unary_op
unary_minus
unary_plus
unary_not
postfix
primary
list_expression
expression_statement
final_expression_statement
named_argument
positional_argument
argument
argument_list
call_op
method_call
call
attribute_item
attribute_command
attribute_command_list
attribute
inner_attribute
inner_attribute_statement
attribute_list
qualifier
assignment
assignment_statement
marker
parameter
parameter_list
function_signature
function_definition
return_statement
if_statement
doc_block
workbench_kind
workbench_definition
body
init_definition
module_definition
statement
statement_list
source_file
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more