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

pub struct If;
Expand description

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

Function that is called when this helper is resolved by the renderer for a statement or block. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.