pub enum Rule {
Show 41 variants
EOI,
whitespace,
string_escape,
string_content_char,
string_content,
string_literal,
raw_string_content,
raw_string_literal,
integer_literal,
identifier,
concat_op,
logical_or_op,
logical_and_op,
eq_op,
ne_op,
ge_op,
gt_op,
le_op,
lt_op,
add_op,
sub_op,
mul_op,
div_op,
rem_op,
logical_not_op,
negate_op,
prefix_ops,
infix_ops,
function,
keyword_argument,
argument,
function_arguments,
lambda,
formal_parameters,
primary,
term,
expression,
template,
program,
function_alias_declaration,
alias_declaration,
}
Variants§
EOI
End-of-input
whitespace
string_escape
string_content_char
string_content
string_literal
raw_string_content
raw_string_literal
integer_literal
identifier
concat_op
logical_or_op
logical_and_op
eq_op
ne_op
ge_op
gt_op
le_op
lt_op
add_op
sub_op
mul_op
div_op
rem_op
logical_not_op
negate_op
prefix_ops
infix_ops
function
keyword_argument
argument
function_arguments
lambda
formal_parameters
primary
term
expression
template
program
function_alias_declaration
alias_declaration
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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