Trait Filter

pub trait Filter<Arg, Res: FunctionResult>: Sync + Send + 'static

The filter function type definition

Required Methods

fn call(&self, value: Arg, kwargs: Kwargs, state: &State<'_>) -> Res

The filter function type definition

Provided Methods

fn is_safe(&self) -> bool

Whether the current filter's output should be treated as safe, defaults to false Only needs to be defined if the filter returns a string

Implementors