pub enum Rule {
Show 92 variants
EOI,
WHITESPACE,
COMMENT,
hex_number,
decimal_number,
number,
string_content,
string_literal,
register,
register_32,
llvm_register,
identifier,
symbol,
numeric_label,
numeric_label_ref,
bin_op,
term,
expression,
operand,
memory_op,
memory_offset,
mem_size,
memory_ref,
llvm_memory_ref,
signed_number,
jump_target,
globl_symbol,
directive_globl,
directive_extern,
directive_equ,
directive_section,
directive_ascii,
directive_byte,
directive_short,
directive_word,
directive_int,
directive_long,
directive_quad,
directive_inner,
directive,
alu_64_op,
instr_alu64_imm,
instr_alu64_reg,
alu_32_op,
instr_alu32_imm,
instr_alu32_reg,
instr_neg32,
instr_neg64,
load_op,
instr_load,
instr_lddw,
store_op_imm,
store_op_reg,
instr_store_imm,
instr_store_reg,
jump_op,
jump32_op,
instr_jump_imm,
instr_jump_reg,
instr_jump32_imm,
instr_jump32_reg,
instr_jump_uncond,
endian_op,
instr_endian,
alu_op,
instr_llvm_alu64,
instr_llvm_alu32,
instr_llvm_neg64,
instr_llvm_neg32,
instr_llvm_load,
instr_llvm_lddw,
instr_llvm_store_reg,
instr_llvm_store_imm,
instr_llvm_endian,
cmp_op,
instr_llvm_jump_uncond,
instr_llvm_jump_reg,
instr_llvm_jump_imm,
instr_llvm_jump32_reg,
instr_llvm_jump32_imm,
instr_call,
instr_callx,
instr_exit,
instr_default,
label_default,
statement_default,
program_default,
instr_llvm,
label_llvm,
statement_llvm,
program_llvm,
program,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
hex_number
decimal_number
number
string_content
string_literal
register
register_32
llvm_register
identifier
symbol
numeric_label
numeric_label_ref
bin_op
term
expression
operand
memory_op
memory_offset
mem_size
memory_ref
llvm_memory_ref
signed_number
jump_target
globl_symbol
directive_globl
directive_extern
directive_equ
directive_section
directive_ascii
directive_byte
directive_short
directive_word
directive_int
directive_long
directive_quad
directive_inner
directive
alu_64_op
instr_alu64_imm
instr_alu64_reg
alu_32_op
instr_alu32_imm
instr_alu32_reg
instr_neg32
instr_neg64
load_op
instr_load
instr_lddw
store_op_imm
store_op_reg
instr_store_imm
instr_store_reg
jump_op
jump32_op
instr_jump_imm
instr_jump_reg
instr_jump32_imm
instr_jump32_reg
instr_jump_uncond
endian_op
instr_endian
alu_op
instr_llvm_alu64
instr_llvm_alu32
instr_llvm_neg64
instr_llvm_neg32
instr_llvm_load
instr_llvm_lddw
instr_llvm_store_reg
instr_llvm_store_imm
instr_llvm_endian
cmp_op
instr_llvm_jump_uncond
instr_llvm_jump_reg
instr_llvm_jump_imm
instr_llvm_jump32_reg
instr_llvm_jump32_imm
instr_call
instr_callx
instr_exit
instr_default
label_default
statement_default
program_default
instr_llvm
label_llvm
statement_llvm
program_llvm
program
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
Source§impl Parser<Rule> for SbpfParser
impl Parser<Rule> for SbpfParser
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§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