Trait trillium_tera::Test

source ·
pub trait Test: Sync + Send {
    // Required method
    fn test(&self, value: Option<&Value>, args: &[Value]) -> Result<bool, Error>;
}
Expand description

The tester function type definition

Required Methods§

source

fn test(&self, value: Option<&Value>, args: &[Value]) -> Result<bool, Error>

The tester function type definition

Implementors§

source§

impl<F> Test for F
where F: Fn(Option<&Value>, &[Value]) -> Result<bool, Error> + Sync + Send,