Trait Condition

Source
pub trait Condition:
    Debug
    + Clone
    + PartialEq {
    type Expr: Expression;

    // Required method
    fn evaluate(
        &self,
        variables: &[<Self::Expr as Expression>::Element],
    ) -> Result<bool, ExpressionError>;
}

Required Associated Types§

Required Methods§

Source

fn evaluate( &self, variables: &[<Self::Expr as Expression>::Element], ) -> Result<bool, ExpressionError>

Evaluate the condition with the given variables bound.

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§