Struct rocket_dyn_templates::tera::ast::If [−][src]
pub struct If { pub conditions: Vec<(WS, Expr, Vec<Node, Global>), Global>, pub otherwise: Option<(WS, Vec<Node, Global>)>, }
Expand description
An if/elif/else condition with their respective body
Fields
conditions: Vec<(WS, Expr, Vec<Node, Global>), Global>
First item if the if, all the ones after are elif
otherwise: Option<(WS, Vec<Node, Global>)>
The optional else
block
Trait Implementations
Auto Trait Implementations
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