Struct handlebars::template::Subexpression
source · pub struct Subexpression {
pub element: Box<TemplateElement>,
}
Fields§
§element: Box<TemplateElement>
Implementations§
source§impl Subexpression
impl Subexpression
pub fn new(
name: Parameter,
params: Vec<Parameter>,
hash: HashMap<String, Parameter>
) -> Subexpression
pub fn is_helper(&self) -> bool
pub fn as_element(&self) -> &TemplateElement
pub fn name(&self) -> &str
pub fn params(&self) -> Option<&Vec<Parameter>>
pub fn hash(&self) -> Option<&HashMap<String, Parameter>>
Trait Implementations§
source§impl Clone for Subexpression
impl Clone for Subexpression
source§fn clone(&self) -> Subexpression
fn clone(&self) -> Subexpression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more