pub enum Rule {
Show 39 variants
EOI,
WHITESPACE,
COMMENT,
doc_comment,
doc_block,
attribute,
file,
item,
import_decl,
namespace_decl,
const_decl,
enum_def,
enum_variant,
struct_def,
command_def,
telemetry_def,
table_def,
message_def,
field,
optional_marker,
type_expr,
base_type,
string_type,
primitive_type,
type_ref,
array_suffix,
array_size,
bounded_size,
ident,
scoped_ident,
pos_int,
literal,
float_lit,
float_exp,
hex_lit,
int_lit,
bool_lit,
string_lit,
ident_lit,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
doc_comment
doc_block
attribute
file
item
import_decl
namespace_decl
const_decl
enum_def
enum_variant
struct_def
command_def
telemetry_def
table_def
message_def
field
optional_marker
type_expr
base_type
string_type
primitive_type
type_ref
array_suffix
array_size
bounded_size
ident
scoped_ident
pos_int
literal
float_lit
float_exp
hex_lit
int_lit
bool_lit
string_lit
ident_lit
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for SynapseParser
impl Parser<Rule> for SynapseParser
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 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