Trait minijinja::filters::Filter [−][src]
pub trait Filter<V = Value, Rv = Value, Args = Vec<Value>>: Send + Sync + 'static {
fn apply_to(
&self,
env: &Environment<'_>,
value: V,
args: Args
) -> Result<Rv, Error>;
}
Expand description
A utility trait that represents filters.
Required methods
fn apply_to(
&self,
env: &Environment<'_>,
value: V,
args: Args
) -> Result<Rv, Error>
fn apply_to(
&self,
env: &Environment<'_>,
value: V,
args: Args
) -> Result<Rv, Error>
Applies a filter to value with the given arguments.