Eval

Trait Eval 

Source
pub trait Eval: Clone + PartialEq {
    type Context;

    // Required method
    fn eval(&self, data: &Self::Context) -> bool;
}
Expand description

Provides functions for performing boolean expression evaluation in the context of some provided Context.

Required Associated Types§

Source

type Context

The contextual data required to evaluate the expression.

Required Methods§

Source

fn eval(&self, data: &Self::Context) -> bool

Evaluates the expression, returning its truth value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<V> Eval for Expr<V>
where V: Eval,

Source§

impl<V> Eval for CnfHashSet<V>
where V: Eval + Eq + Hash,

Source§

impl<V> Eval for CnfVec<V>
where V: Eval + PartialEq,

Source§

impl<V> Eval for DnfHashSet<V>
where V: Eval + Eq + Hash,

Source§

impl<V> Eval for DnfVec<V>
where V: Eval + PartialEq,