[][src]Struct bracket::helper::if::If

pub struct If;

Evaluates an argument as truthy.

For block execution if the value is truthy the inner template is rendered otherwise each conditional is evaluated and the first one which returns a truthy value is rendered.

When executed in a statement this helper returns whether it's argument is truthy.

Trait Implementations

impl Helper for If[src]

Auto Trait Implementations

impl RefUnwindSafe for If

impl Send for If

impl Sync for If

impl Unpin for If

impl UnwindSafe for If

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.