Enum rocket_dyn_templates::tera::ast::Node [−][src]
pub enum Node {}Show variants
Super, Text(String), VariableBlock(WS, Expr), MacroDefinition(WS, MacroDefinition, WS), Extends(WS, String), Include(WS, Vec<String, Global>, bool), ImportMacro(WS, String, String), Set(WS, Set), Raw(WS, String, WS), FilterSection(WS, FilterSection, WS), Block(WS, Block, WS), Forloop(WS, Forloop, WS), If(If, WS), Break(WS), Continue(WS), Comment(WS, String),
Expand description
All Tera nodes that can be encountered
Variants
A call to {{ super() }}
in a block
Text(String)
Some actual text
A {{ }}
block
MacroDefinition(WS, MacroDefinition, WS)
A {% macro hello() %}...{% endmacro %}
The {% extends "blabla.html" %}
node, contains the template name
The {% include "blabla.html" %}
node, contains the template name
The {% import "macros.html" as macros %}
The {% set val = something %}
tag
The text between {% raw %}
and {% endraw %}
FilterSection(WS, FilterSection, WS)
A filter section node {{ filter name(param="value") }} content {{ endfilter }}
A {% block name %}...{% endblock %}
A {% for i in items %}...{% endfor %}
A if/elif/else block, WS for the if/elif/else is directly in the struct
Break(WS)
The {% break %}
tag
Continue(WS)
The {% continue %}
tag
The {# #}
comment tag and its content
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V