Trait Filter

Source
pub trait Filter: Sync + Send {
    // Required method
    fn filter(
        &self,
        value: &Value,
        args: &HashMap<String, Value>,
    ) -> Result<Value>;
}
Expand description

The filter function type definition

Required Methods§

Source

fn filter(&self, value: &Value, args: &HashMap<String, Value>) -> Result<Value>

The filter function type definition

Implementors§

Source§

impl<F> Filter for F
where F: Fn(&Value, &HashMap<String, Value>) -> Result<Value> + Sync + Send,