[][src]Struct bracket::helper::BlockTemplate

pub struct BlockTemplate<'source> { /* fields omitted */ }

Encapsulates the templates passed to a block helper.

Implementations

impl<'source> BlockTemplate<'source>[src]

pub fn new(template: &'source Node<'source>) -> Self[src]

pub fn template(&self) -> &'source Node<'source>[src]

Get the primary template node for the block.

pub fn inverse<'reg, 'render>(
    &self,
    rc: &mut Render<'reg, 'source, 'render>
) -> Result<Option<&'source Node<'source>>, Error>
[src]

Evaluate the block conditionals and find the first node that should be rendered.

Trait Implementations

impl<'source> Debug for BlockTemplate<'source>[src]

Auto Trait Implementations

impl<'source> RefUnwindSafe for BlockTemplate<'source>

impl<'source> Send for BlockTemplate<'source>

impl<'source> Sync for BlockTemplate<'source>

impl<'source> Unpin for BlockTemplate<'source>

impl<'source> UnwindSafe for BlockTemplate<'source>

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.