pub enum Rule {
Show 79 variants
EOI,
WHITESPACE,
COMMENT,
program,
statement,
trace_stmt,
trace_pattern,
hex_address,
module_hex_address,
wildcard_pattern,
source_line,
function_name,
file_path,
line_number,
print_stmt,
print_content,
format_expr,
backtrace_stmt,
backtrace_arg,
backtrace_flag,
expr_stmt,
var_decl_stmt,
assign_stmt,
if_stmt,
else_clause,
condition,
compare_op,
expr,
or_op,
and_op,
logical_or,
logical_and,
bitwise_or,
bitwise_xor,
bitwise_and,
eq_op,
rel_op,
shift_op,
bit_and_op,
bit_xor_op,
bit_or_op,
equality,
relational,
shift,
additive,
term,
neg_unary,
not_unary,
bit_not_unary,
unary,
factor,
strncmp_call,
starts_with_call,
memcmp_call,
hex_call,
cast_call,
special_var,
complex_variable,
postfix_access,
postfix_base,
postfix_suffix,
member_suffix,
index_suffix,
chain_access,
array_access,
member_access,
unary_target,
pointer_deref,
address_of,
add_op,
mul_op,
identifier,
int,
hex_int,
oct_int,
bin_int,
float,
string,
bool,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
program
statement
trace_stmt
trace_pattern
hex_address
module_hex_address
wildcard_pattern
source_line
function_name
file_path
line_number
print_stmt
print_content
format_expr
backtrace_stmt
backtrace_arg
backtrace_flag
expr_stmt
var_decl_stmt
assign_stmt
if_stmt
else_clause
condition
compare_op
expr
or_op
and_op
logical_or
logical_and
bitwise_or
bitwise_xor
bitwise_and
eq_op
rel_op
shift_op
bit_and_op
bit_xor_op
bit_or_op
equality
relational
shift
additive
term
neg_unary
not_unary
bit_not_unary
unary
factor
strncmp_call
starts_with_call
memcmp_call
hex_call
cast_call
special_var
complex_variable
postfix_access
postfix_base
postfix_suffix
member_suffix
index_suffix
chain_access
array_access
member_access
unary_target
pointer_deref
address_of
add_op
mul_op
identifier
int
hex_int
oct_int
bin_int
float
string
bool
Implementations§
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
Source§impl Ord for Rule
impl Ord for Rule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl Parser<Rule> for GhostScopeParser
impl Parser<Rule> for GhostScopeParser
Source§impl PartialOrd for Rule
impl PartialOrd 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 UnsafeUnpin 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§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