pub enum Rule {
Show 94 variants
EOI,
WHITESPACE,
comment,
pax_component_definition,
root_tag_pair,
any_tag_pair,
open_tag,
closing_tag,
self_closing_tag,
matched_tag,
inner_nodes,
identifier,
pascal_identifier,
event_id,
attribute_key_value_pair,
attribute_event_binding,
double_binding,
any_template_value,
node_inner_content,
string,
inner,
char,
settings_block_declaration,
selector_block,
literal_object,
selector,
settings_key_value_pair,
settings_event_binding,
settings_key,
settings_value,
literal_function,
silent_comma,
function_list,
literal_value,
literal_boolean,
literal_some,
literal_none,
literal_option,
literal_number_with_unit,
literal_number,
literal_number_integer,
literal_number_float,
literal_number_unit,
literal_tuple,
literal_tuple_access,
literal_list,
literal_list_access,
literal_enum_value,
literal_enum_args_list,
literal_color,
literal_color_space_func,
literal_color_channel,
xo_color_space_func,
literal_color_const,
expression_body,
expression_wrapped,
expression_grouped,
xo_primary,
xo_prefix,
xo_neg,
xo_bool_not,
xo_infix,
xo_add,
xo_bool_and,
xo_bool_or,
xo_div,
xo_exp,
xo_mod,
xo_mul,
xo_rel_eq,
xo_rel_gt,
xo_rel_gte,
xo_rel_lt,
xo_rel_lte,
xo_rel_neq,
xo_sub,
xo_tern_then,
xo_tern_else,
xo_range,
xo_range_exclusive,
xo_literal,
xo_object,
xo_object_settings_key_value_pair,
xo_symbol,
xo_tuple,
xo_list,
xo_enum_or_function_call,
xo_enum_or_function_args_list,
statement_control_flow,
statement_if,
statement_for,
statement_slot,
statement_for_predicate_declaration,
statement_for_source,
}Variants§
EOI
End-of-input
WHITESPACE
comment
pax_component_definition
/// ////// ////// BEGIN TEMPLATE ///
root_tag_pair
any_tag_pair
open_tag
closing_tag
self_closing_tag
matched_tag
inner_nodes
identifier
pascal_identifier
event_id
attribute_key_value_pair
attribute_event_binding
double_binding
any_template_value
node_inner_content
string
inner
char
settings_block_declaration
/// ////// ////// BEGIN SETTINGS ///
selector_block
literal_object
selector
settings_key_value_pair
settings_event_binding
settings_key
settings_value
literal_function
silent_comma
function_list
literal_value
literal_boolean
literal_some
literal_none
literal_option
literal_number_with_unit
literal_number
literal_number_integer
literal_number_float
literal_number_unit
literal_tuple
literal_tuple_access
literal_list
literal_list_access
literal_enum_value
literal_enum_args_list
literal_color
/// ////// ////// BEGIN COLORS ///
literal_color_space_func
literal_color_channel
xo_color_space_func
literal_color_const
expression_body
/// ////// ////// BEGIN EXPRESSIONS This sub-grammar describes PAXEL, the Pax Expression Language ///
expression_wrapped
expression_grouped
xo_primary
xo_prefix
xo_neg
xo_bool_not
xo_infix
xo_add
xo_bool_and
xo_bool_or
xo_div
xo_exp
xo_mod
xo_mul
xo_rel_eq
xo_rel_gt
xo_rel_gte
xo_rel_lt
xo_rel_lte
xo_rel_neq
xo_sub
xo_tern_then
xo_tern_else
xo_range
xo_range_exclusive
xo_literal
xo_object
xo_object_settings_key_value_pair
xo_symbol
xo_tuple
xo_list
xo_enum_or_function_call
xo_enum_or_function_args_list
statement_control_flow
/// ////// ////// BEGIN CONTROL FLOW ///
statement_if
statement_for
statement_slot
statement_for_predicate_declaration
statement_for_source
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> 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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.