pub enum Rule {
Show 107 variants
EOI,
SPACE,
reserved_keyword,
label,
number_literal,
scientific_number,
decimal_number,
exponent_part,
type_standard,
type_definition,
type_import,
type_custom,
type_name_def,
type_import_def,
type_arrow_chain,
boolean_literal,
text_literal,
percent_literal,
arrow_symbol,
command,
command_name,
command_arg,
lemma_file,
doc,
doc_body,
doc_declaration,
doc_name,
doc_identifier,
triple_quote,
commentary_block,
commentary,
fact_reference_segment,
fact_reference,
fact_definition,
fact_override,
fact_value,
type_declaration,
inline_type_definition,
doc_reference,
rule_name,
rule_definition,
rule_expression,
unless_statement,
veto_expression,
rule_reference_segment,
rule_reference,
expression,
and_expression,
and_operand,
primary,
op_add,
op_sub,
op_mul,
op_div,
op_mod,
op_pow,
math_function,
factor,
power,
term,
base_expression,
conversion_target_name,
conversion_expression,
duration_unit,
comp_gte,
comp_lte,
comp_eq,
comp_ne,
comp_is_not,
comp_gt,
comp_lt,
comp_is,
comp_operator,
simple_expression,
comparison_expression,
not_expr,
sqrt_expr,
sin_expr,
cos_expr,
tan_expr,
asin_expr,
acos_expr,
atan_expr,
log_expr,
exp_expr,
abs_expr,
floor_expr,
ceil_expr,
round_expr,
literal,
year,
month,
day,
hour,
minute,
second,
timezone,
timezone_utc,
timezone_offset,
timezone_sign,
timezone_hour,
timezone_minute,
time_literal,
date_time_literal,
duration_literal,
unit_name,
number_unit_literal,
}Variants§
EOI
End-of-input
SPACE
reserved_keyword
label
number_literal
scientific_number
decimal_number
exponent_part
type_standard
type_definition
type_import
type_custom
type_name_def
type_import_def
type_arrow_chain
boolean_literal
text_literal
percent_literal
arrow_symbol
command
command_name
command_arg
lemma_file
doc
doc_body
doc_declaration
doc_name
doc_identifier
triple_quote
commentary_block
commentary
fact_reference_segment
fact_reference
fact_definition
fact_override
fact_value
type_declaration
inline_type_definition
doc_reference
rule_name
rule_definition
rule_expression
unless_statement
veto_expression
rule_reference_segment
rule_reference
expression
and_expression
and_operand
primary
op_add
op_sub
op_mul
op_div
op_mod
op_pow
math_function
factor
power
term
base_expression
conversion_target_name
conversion_expression
duration_unit
comp_gte
comp_lte
comp_eq
comp_ne
comp_is_not
comp_gt
comp_lt
comp_is
comp_operator
simple_expression
comparison_expression
not_expr
sqrt_expr
sin_expr
cos_expr
tan_expr
asin_expr
acos_expr
atan_expr
log_expr
exp_expr
abs_expr
floor_expr
ceil_expr
round_expr
literal
year
month
day
hour
minute
second
timezone
timezone_utc
timezone_offset
timezone_sign
timezone_hour
timezone_minute
time_literal
date_time_literal
duration_literal
unit_name
number_unit_literal
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for LemmaParser
impl Parser<Rule> for LemmaParser
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.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