Struct rocket_dyn_templates::tera::ast::If
source · 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§
impl StructuralPartialEq for If
Auto Trait Implementations§
impl RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl UnwindSafe for If
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.