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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more