Evaluate

Trait Evaluate 

Source
pub trait Evaluate<T: Matchable>: Matcher<T> {
    type Output;

    // Required method
    fn evaluate(&self, value: &T) -> Self::Output;
}
Expand description

Extended trait for matchers that provide detailed evaluation results.

Implement this trait when you need to provide detailed information about why a match succeeded or failed.

Required Associated Types§

Source

type Output

The result type for detailed evaluation.

Required Methods§

Source

fn evaluate(&self, value: &T) -> Self::Output

Evaluate with full details (field values, errors, descriptions).

Implementors§

Source§

impl<'a, T: Matchable + 'static> Evaluate<T> for RuleMatcher<'a, T>