pub enum Rule {
Show 120 variants
loc_if,
loc_else,
loc_for,
loc_in,
loc_while,
loc_repeat,
loc_return,
loc_break,
loc_continue,
loc_function,
loc_fn,
loc_na,
loc_null,
loc_inf,
loc_true,
loc_false,
WS_NO_NL,
WS,
WB,
CAPTURE_WS,
eoi,
hl,
hl_kws,
hl_comment,
hl_control,
hl_control_kws,
hl_signal,
hl_signal_kws,
hl_function,
hl_function_kws,
hl_value,
hl_value_kws,
hl_call,
hl_callname,
hl_sym,
hl_symbol_backticked,
hl_str,
hl_num,
hl_infix,
hl_open,
hl_brackets,
hl_ops,
hl_other,
repl,
expr,
comment,
atomic,
prefixed,
postfixed,
infix,
add,
subtract,
multiply,
divide,
modulo,
power,
gt,
gte,
eq,
neq,
lt,
lte,
or,
vor,
and,
vand,
assign,
special,
pipe,
dollar,
colon,
doublecolon,
triplecolon,
more,
prefix,
not,
postfix,
call,
index,
vector_index,
standalone,
block,
block_exprs,
block_sep,
paren_expr,
atom,
kw_function_or_fn,
kw_function,
kw_if_else,
kw_for,
kw_while,
kw_repeat,
kw_break,
kw_continue,
kw_return,
val_null,
val_na,
val_inf,
val_true,
val_false,
number,
number_leading,
number_trailing,
integer_expr,
integer,
string_expr,
single_quoted_string,
double_quoted_string,
single_quoted_string_char,
double_quoted_string_char,
escaped_char,
symbol,
symbol_with_backticks,
symbol_backticked,
symbol_ident,
list,
pairs,
elem,
named,
vec,
}
Variants§
loc_if
loc_else
loc_for
loc_in
loc_while
loc_repeat
loc_return
loc_break
loc_continue
loc_function
loc_fn
loc_na
loc_null
loc_inf
loc_true
loc_false
WS_NO_NL
WS
WB
CAPTURE_WS
eoi
hl
hl_kws
hl_comment
hl_control
hl_control_kws
hl_signal
hl_signal_kws
hl_function
hl_function_kws
hl_value
hl_value_kws
hl_call
hl_callname
hl_sym
hl_symbol_backticked
hl_str
hl_num
hl_infix
hl_open
hl_brackets
hl_ops
hl_other
repl
expr
comment
atomic
prefixed
postfixed
infix
add
subtract
multiply
divide
modulo
power
gt
gte
eq
neq
lt
lte
or
vor
and
vand
assign
special
pipe
dollar
colon
doublecolon
triplecolon
more
prefix
not
postfix
call
index
vector_index
standalone
block
block_exprs
block_sep
paren_expr
atom
kw_function_or_fn
kw_function
kw_if_else
kw_for
kw_while
kw_repeat
kw_break
kw_continue
kw_return
val_null
val_na
val_inf
val_true
val_false
number
number_leading
number_trailing
integer_expr
integer
string_expr
single_quoted_string
double_quoted_string
single_quoted_string_char
double_quoted_string_char
escaped_char
symbol
symbol_with_backticks
symbol_backticked
symbol_ident
list
pairs
elem
named
vec
Implementations§
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 UnwindSafe for Rule
Blanket Implementations§
source§impl<T> AsDynCompare for Twhere
T: Any + DynCompare,
impl<T> AsDynCompare for Twhere
T: Any + DynCompare,
fn as_any(&self) -> &(dyn Any + 'static)
fn as_dyn_compare(&self) -> &(dyn DynCompare + 'static)
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> DynCompare for T
impl<T> DynCompare for T
fn dyn_eq(&self, other: &(dyn DynCompare + 'static)) -> bool
§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
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