pub enum Rule {
Show 47 variants
EOI,
linear_whitespace,
vertical_whitespace,
whitespace,
start_marker,
end_marker,
comment_start_marker,
comment_end_marker,
keyword_if,
keyword_unless,
keyword_elif,
keyword_else,
keyword_end,
keyword_for,
keyword_with,
keyword_debug,
keywords,
property,
properties,
function,
boolean,
floating_point_number,
integer_number,
number,
string,
null,
array,
key_value_pair,
dictionary,
literal,
function_call,
expression,
expression_template,
if_template,
elif_template,
else_template,
end_template,
if_elif_else_template,
for_template,
with_template,
for_else_template,
comment,
debug_template,
template,
character,
sub_template,
file,
}
Variants§
EOI
End-of-input
linear_whitespace
vertical_whitespace
whitespace
start_marker
end_marker
comment_start_marker
comment_end_marker
keyword_if
keyword_unless
keyword_elif
keyword_else
keyword_end
keyword_for
keyword_with
keyword_debug
keywords
property
properties
function
boolean
floating_point_number
integer_number
number
string
null
array
key_value_pair
dictionary
literal
function_call
expression
expression_template
if_template
elif_template
else_template
end_template
if_elif_else_template
for_template
with_template
for_else_template
comment
debug_template
template
character
sub_template
file
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for TemplateParser
impl Parser<Rule> for TemplateParser
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§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