[−][src]Struct bracket::helper::BlockTemplate
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]
&self,
rc: &mut Render<'reg, 'source, 'render>
) -> Result<Option<&'source Node<'source>>, Error>
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,