Struct rocket_dyn_templates::tera::ast::MacroDefinition [−][src]
pub struct MacroDefinition { pub name: String, pub args: HashMap<String, Option<Expr>, RandomState>, pub body: Vec<Node, Global>, }
Expand description
A Macro definition
Fields
name: String
The macro name
args: HashMap<String, Option<Expr>, RandomState>
The args for that macro: name -> optional default value
body: Vec<Node, Global>
The macro content
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MacroDefinition
impl Send for MacroDefinition
impl Sync for MacroDefinition
impl Unpin for MacroDefinition
impl UnwindSafe for MacroDefinition
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