pub enum Rule {
Show 85 variants
EOI,
file,
definition,
attention_def,
attention_prop,
head_dim_prop,
window_size_prop,
causal_prop,
qk_norm_prop,
position_encoding_prop,
position_encoding_config,
rope_config,
rope_param,
rope_base_prop,
alibi_config,
alibi_param,
alibi_slopes_prop,
learned_config,
learned_param,
max_positions_prop,
ffn_def,
ffn_prop,
hidden_dim_prop,
gate_prop,
moe_prop,
moe_param,
experts_prop,
top_k_prop,
shared_experts_prop,
load_balance_loss_weight_prop,
router_z_loss_weight_prop,
ssm_def,
ssm_prop,
state_dim_prop,
conv_kernel_prop,
expand_prop,
dt_rank_prop,
block_def,
block_prop,
attention_ref_prop,
ssm_ref_prop,
ffn_ref_prop,
inline_attention,
inline_ssm,
inline_ffn,
norm_prop,
norm_config,
rmsnorm_config,
layernorm_config,
norm_param,
norm_position_prop,
residual_prop,
model_def,
model_prop,
block_ref_prop,
inline_block,
pattern_prop,
embeddings_prop,
embedding_param,
tie_weights_prop,
scale_prop,
output_prop,
output_param,
vocab_size_prop,
max_seq_len_prop,
hidden_size_prop,
num_layers_prop,
num_heads_prop,
num_kv_heads_prop,
rope_theta_prop,
rope_scaling_prop,
norm_eps_prop,
activation_prop,
activation_type,
dropout_prop,
bias_prop,
description_prop,
integer,
number,
boolean,
quoted_string,
string_inner,
identifier,
WHITESPACE,
COMMENT,
}Variants§
EOI
End-of-input
file
definition
attention_def
attention_prop
head_dim_prop
window_size_prop
causal_prop
qk_norm_prop
position_encoding_prop
position_encoding_config
rope_config
rope_param
rope_base_prop
alibi_config
alibi_param
alibi_slopes_prop
learned_config
learned_param
max_positions_prop
ffn_def
ffn_prop
gate_prop
moe_prop
moe_param
experts_prop
top_k_prop
load_balance_loss_weight_prop
router_z_loss_weight_prop
ssm_def
ssm_prop
state_dim_prop
conv_kernel_prop
expand_prop
dt_rank_prop
block_def
block_prop
attention_ref_prop
ssm_ref_prop
ffn_ref_prop
inline_attention
inline_ssm
inline_ffn
norm_prop
norm_config
rmsnorm_config
layernorm_config
norm_param
norm_position_prop
residual_prop
model_def
model_prop
block_ref_prop
inline_block
pattern_prop
embeddings_prop
embedding_param
tie_weights_prop
scale_prop
output_prop
output_param
vocab_size_prop
max_seq_len_prop
num_layers_prop
num_heads_prop
num_kv_heads_prop
rope_theta_prop
rope_scaling_prop
norm_eps_prop
activation_prop
activation_type
dropout_prop
bias_prop
description_prop
integer
number
boolean
quoted_string
string_inner
identifier
WHITESPACE
COMMENT
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 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