Trait Evaluator

Source
pub trait Evaluator: Fn(&Context) -> bool {
    // Required method
    fn clone_boxed(&self) -> Box<dyn Evaluator + Send + Sync + 'static>;
}
Expand description

Apply memoised state to a context.

Required Methods§

Source

fn clone_boxed(&self) -> Box<dyn Evaluator + Send + Sync + 'static>

Trait Implementations§

Source§

impl Clone for Box<dyn Evaluator + Send + Sync + 'static>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T> Evaluator for T
where T: 'static + Clone + Sync + Send + Fn(&Context) -> bool,