rocket_dyn_templates::minijinja::value

Trait FunctionResult

Source
pub trait FunctionResult { }
Expand description

A utility trait that represents the return value of functions and filters.

It’s implemented for the following types:

  • Rv where Rv implements Into<AnyMapObject>
  • Result<Rv, Error> where Rv implements Into<Value>

The equivalent for test functions is TestResult.

Implementations on Foreign Types§

Source§

impl<I> FunctionResult for Result<I, Error>
where I: Into<Value>,

Implementors§

Source§

impl<I> FunctionResult for I
where I: Into<Value>,