pub enum Rule {
Show 118 variants
EOI,
WHITESPACE,
ident_char,
field_char,
kw_and,
kw_or,
kw_not,
kw_for,
kw_in,
kw_if,
kw_else,
kw_let,
kw_lambda,
kw_kind,
kw_is,
kw_as,
kw_when,
kw_patch,
kw_delete,
reserved,
ident,
field_name,
lit_null,
lit_true,
lit_false,
lit_float,
lit_int,
lit_str_dq,
lit_str_sq,
lit_str,
lit_fstring,
literal,
root,
current,
kind_type,
cast_type,
cmp_op,
add_op,
mul_op,
idx_val,
slice_full,
slice_from,
slice_to,
idx_only,
bracket_inner,
named_arg,
pos_arg,
arg,
arg_list,
deep_method,
descendant,
method_call,
dyn_field,
map_into_shape,
field_access,
index_access,
inline_filter,
quantifier,
postfix,
expr,
cond_expr,
pipe_step,
pipe_method_call,
pipe_forward,
pipe_bind,
bind_target,
bind_rest,
bind_obj,
bind_arr,
pipe_expr,
coalesce_expr,
or_expr,
and_expr,
not_expr,
kind_expr,
cmp_expr,
add_expr,
mul_expr,
cast_expr,
unary_neg,
unary_expr,
postfix_expr,
comp_vars,
list_comp,
dict_comp,
set_comp,
gen_comp,
lambda_params,
lambda_expr,
arrow_params,
arrow_lambda,
let_binding,
let_expr,
obj_key_expr,
obj_field_dyn,
obj_field_opt_v,
obj_field_opt,
obj_field_spread_deep,
obj_field_spread,
obj_field_kv,
obj_field_short,
obj_field,
obj_construct,
arr_spread,
arr_elem,
arr_construct,
global_call,
pp_wild_filter,
pp_wild,
pp_index,
pp_descendant,
pp_dot_field,
patch_step,
patch_key,
patch_field,
patch_block,
primary,
program,
}Expand description
Variants§
EOI
WHITESPACE
ident_char
field_char
kw_and
kw_or
kw_not
kw_for
kw_in
kw_if
kw_else
kw_let
kw_lambda
kw_kind
kw_is
kw_as
kw_when
kw_patch
kw_delete
reserved
ident
field_name
lit_null
lit_true
lit_false
lit_float
lit_int
lit_str_dq
lit_str_sq
lit_str
lit_fstring
literal
root
current
kind_type
cast_type
cmp_op
add_op
mul_op
idx_val
slice_full
slice_from
slice_to
idx_only
bracket_inner
named_arg
pos_arg
arg
arg_list
deep_method
descendant
method_call
dyn_field
map_into_shape
field_access
index_access
inline_filter
quantifier
postfix
expr
cond_expr
pipe_step
pipe_method_call
pipe_forward
pipe_bind
bind_target
bind_rest
bind_obj
bind_arr
pipe_expr
coalesce_expr
or_expr
and_expr
not_expr
kind_expr
cmp_expr
add_expr
mul_expr
cast_expr
unary_neg
unary_expr
postfix_expr
comp_vars
list_comp
dict_comp
set_comp
gen_comp
lambda_params
lambda_expr
arrow_params
arrow_lambda
let_binding
let_expr
obj_key_expr
obj_field_dyn
obj_field_opt_v
obj_field_opt
obj_field_spread_deep
obj_field_spread
obj_field_kv
obj_field_short
obj_field
obj_construct
arr_spread
arr_elem
arr_construct
global_call
pp_wild_filter
pp_wild
pp_index
pp_descendant
pp_dot_field
patch_step
patch_key
patch_field
patch_block
primary
program
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.