[][src]Struct handlebars::Decorator

pub struct Decorator<'reg: 'rc, 'rc> { /* fields omitted */ }

Render-time Decorator data when using in a decorator definition

Methods

impl<'reg: 'rc, 'rc> Decorator<'reg, 'rc>[src]

pub fn name(&self) -> &String[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

impl<'reg: 'rc, 'rc> Debug for Decorator<'reg, 'rc>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.