Trait Function

pub trait Function<Res: FunctionResult>: Sync + Send + 'static

The function function type definition

Required Methods

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

The function type definition

Provided Methods

fn is_safe(&self) -> bool

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

Implementors