Struct handlebars::Decorator [−][src]
Render-time Decorator data when using in a decorator definition
Implementations
impl<'reg: 'rc, 'rc> Decorator<'reg, 'rc>
[src][−]
pub fn name(&self) -> &str
[src][−]
Returns helper name
pub fn params(&self) -> &Vec<PathAndJson<'reg, 'rc>>
[src][−]
Returns all helper params, resolved within the context
pub fn param(&self, idx: usize) -> Option<&PathAndJson<'reg, 'rc>>
[src][−]
Returns nth helper param, resolved within the context
pub fn hash(&self) -> &BTreeMap<&'reg str, PathAndJson<'reg, 'rc>>
[src][−]
Returns hash, resolved within the context
pub fn hash_get(&self, key: &str) -> Option<&PathAndJson<'reg, 'rc>>
[src][−]
Return hash value of a given key, resolved within the context
pub fn template(&self) -> Option<&'reg Template>
[src][−]
Returns the default inner template if any
Trait Implementations
Auto Trait Implementations
impl<'reg, 'rc> RefUnwindSafe for Decorator<'reg, 'rc>
impl<'reg, 'rc> Send for Decorator<'reg, 'rc>
impl<'reg, 'rc> Sync for Decorator<'reg, 'rc>
impl<'reg, 'rc> Unpin for Decorator<'reg, 'rc>
impl<'reg, 'rc> UnwindSafe for Decorator<'reg, 'rc>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,