Struct rocket_dyn_templates::tera::ast::Set [−][src]
Expand description
Set a variable in the context {% set val = "hey" %}
Fields
key: String
The name for that value in the context
value: Expr
The value to assign
global: bool
Whether we want to set the variable globally or locally global_set is only useful in loops
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Set
impl UnwindSafe for Set
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