pub enum Rule {
Show 44 variants
EOI,
identifier_part,
identifier,
symbol,
literal_string,
whitespace,
at_op,
parents_op,
children_op,
compat_parents_op,
dag_range_op,
dag_range_pre_op,
dag_range_post_op,
dag_range_all_op,
legacy_dag_range_op,
legacy_dag_range_pre_op,
legacy_dag_range_post_op,
range_op,
range_pre_op,
range_post_op,
range_all_op,
range_ops,
range_pre_ops,
range_post_ops,
range_all_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,
}
Expand description
Variants§
EOI
End-of-input
identifier_part
identifier
symbol
literal_string
whitespace
at_op
parents_op
children_op
compat_parents_op
dag_range_op
dag_range_pre_op
dag_range_post_op
dag_range_all_op
legacy_dag_range_op
legacy_dag_range_pre_op
legacy_dag_range_post_op
range_op
range_pre_op
range_post_op
range_all_op
range_ops
range_pre_ops
range_post_ops
range_all_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 PartialEq for Rule
impl PartialEq for Rule
source§impl PartialOrd for Rule
impl PartialOrd for Rule
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Rule
impl Eq for Rule
impl StructuralEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
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