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 moresource§impl Debug for Subexpression
impl Debug for Subexpression
source§impl PartialEq<Subexpression> for Subexpression
impl PartialEq<Subexpression> for Subexpression
source§fn eq(&self, other: &Subexpression) -> bool
fn eq(&self, other: &Subexpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Subexpression
impl StructuralEq for Subexpression
impl StructuralPartialEq for Subexpression
Auto Trait Implementations§
impl RefUnwindSafe for Subexpression
impl Send for Subexpression
impl Sync for Subexpression
impl Unpin for Subexpression
impl UnwindSafe for Subexpression
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more