pub enum Rule {
Show 37 variants
EOI,
identifier_part,
identifier,
symbol,
literal_string,
whitespace,
parents_op,
children_op,
compat_parents_op,
dag_range_op,
dag_range_pre_op,
dag_range_post_op,
range_op,
range_pre_op,
range_post_op,
range_ops,
range_pre_ops,
range_post_ops,
negate_op,
union_op,
intersection_op,
difference_op,
compat_add_op,
compat_sub_op,
infix_op,
function_name,
keyword_argument,
argument,
function_arguments,
formal_parameters,
primary,
neighbors_expression,
range_expression,
expression,
program,
alias_declaration_part,
alias_declaration,
}Variants§
EOI
End-of-input
identifier_part
identifier
symbol
literal_string
whitespace
parents_op
children_op
compat_parents_op
dag_range_op
dag_range_pre_op
dag_range_post_op
range_op
range_pre_op
range_post_op
range_ops
range_pre_ops
range_post_ops
negate_op
union_op
intersection_op
difference_op
compat_add_op
compat_sub_op
infix_op
function_name
keyword_argument
argument
function_arguments
formal_parameters
primary
neighbors_expression
range_expression
expression
program
alias_declaration_part
alias_declaration
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for RevsetParser
impl Parser<Rule> for RevsetParser
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> 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