pub enum Rule {
Show 115 variants
EOI,
WHITESPACE,
COMMENT,
semi,
ident_syms,
identifier,
bitwidth,
binary,
decimal,
octal,
hex,
float,
num_lit,
char,
string_lit,
bad_num,
comb,
reference,
static_word,
static_annotation,
static_optional_latency,
both_comb_static,
comb_or_static,
file,
extern_or_component,
externs_and_comps,
component,
import,
imports,
comma_req,
comma,
signature,
io_port,
inputs,
outputs,
params,
sig_with_params,
primitive,
block_char,
block_string,
prim_inline,
ext,
args,
float_const,
cell_without_semi,
cell,
cells,
hole,
port,
LHS,
expr,
guard_eq,
guard_neq,
guard_leq,
guard_geq,
guard_lt,
guard_gt,
cmp_expr,
guard_or,
guard_and,
guard_not,
operator,
guard_expr,
term,
switch_stmt,
wire,
static_timing_expr,
static_term,
static_guard_expr,
static_switch_stmt,
static_wire,
attr_set,
attribute,
latency_annotation,
attributes,
name_with_attribute,
attr_val,
at_attribute,
at_attributes,
group,
static_group,
connections,
empty,
enable,
invoke_arg,
invoke_args,
invoke_ref_arg,
invoke_ref_args,
invoke,
static_invoke,
seq,
static_seq,
par,
static_par,
stmts_without_block,
block,
port_with,
if_stmt,
static_if_stmt,
while_stmt,
repeat_stmt,
stmt,
control,
any_char,
metadata_char,
metadata,
file_header,
path_text,
file_entry,
file_table,
position_header,
position_entry,
position_table,
source_info_table,
extra_info,
}
Variants§
EOI
End-of-input
WHITESPACE
COMMENT
semi
ident_syms
identifier
bitwidth
binary
decimal
octal
hex
float
num_lit
char
string_lit
bad_num
comb
reference
static_word
static_annotation
static_optional_latency
both_comb_static
comb_or_static
file
extern_or_component
externs_and_comps
component
import
imports
comma_req
comma
signature
io_port
inputs
outputs
params
sig_with_params
primitive
block_char
block_string
prim_inline
ext
args
float_const
cell_without_semi
cell
cells
hole
port
LHS
expr
guard_eq
guard_neq
guard_leq
guard_geq
guard_lt
guard_gt
cmp_expr
guard_or
guard_and
guard_not
operator
guard_expr
term
switch_stmt
wire
static_timing_expr
static_term
static_guard_expr
static_switch_stmt
static_wire
attr_set
attribute
latency_annotation
attributes
name_with_attribute
attr_val
at_attribute
at_attributes
group
static_group
connections
empty
enable
invoke_arg
invoke_args
invoke_ref_arg
invoke_ref_args
invoke
static_invoke
seq
static_seq
par
static_par
stmts_without_block
block
port_with
if_stmt
static_if_stmt
while_stmt
repeat_stmt
stmt
control
any_char
metadata_char
metadata
file_header
path_text
file_entry
file_table
position_header
position_entry
position_table
source_info_table
extra_info
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for CalyxParser
impl Parser<Rule> for CalyxParser
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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