rocket_dyn_templates::tera

Trait 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,