Trait minijinja::value::ArgType[][src]

pub trait ArgType: Sized {
    fn from_value(value: Option<Value>) -> Result<Self, Error>;
}
Expand description

A trait implemented by all filter/test argument types.

This trait is the companion to FunctionArgs. It’s passed an Option<Value> where Some means the argument was provided or None if it was not. This is used to implement optional arguments to functions.

Required methods

Implementations on Foreign Types

Implementors