pub trait Function: Sync {
    fn evaluate(
        &self,
        args: &[Rcvar],
        ctx: &mut Context<'_>
    ) -> Result<Rcvar, JmespathError>; }
Expand description

Represents a JMESPath function.

Required methods

Evaluates the function against an in-memory variable.

Implementors

Normal closures can be used as functions.

It is up to the function to validate the provided arguments. If you wish to utilize Signatures or more complex argument validation, it is recommended to use CustomFunction.