Struct handlebars::template::Subexpression
source · [−]pub struct Subexpression {
pub element: Box<TemplateElement>,
}
Fields
element: Box<TemplateElement>
Implementations
sourceimpl 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
sourceimpl Clone for Subexpression
impl Clone for Subexpression
sourcefn clone(&self) -> Subexpression
fn clone(&self) -> Subexpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Subexpression
impl Debug for Subexpression
sourceimpl PartialEq<Subexpression> for Subexpression
impl PartialEq<Subexpression> for Subexpression
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Subexpression) -> bool
fn ne(&self, other: &Subexpression) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more