Skip to main content

Evaluable

Trait Evaluable 

Source
pub trait Evaluable<State: ?Sized> {
    type Value;

    // Required method
    fn eval(&self, state: &State) -> Self::Value;
}

Required Associated Types§

Required Methods§

Source

fn eval(&self, state: &State) -> Self::Value

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Evaluable<&str> for Pattern<ClientNamePatternKind>

Source§

impl Evaluable<&str> for Pattern<DomainPatternKind>

Source§

impl Evaluable<&str> for Pattern<LocationPatternKind>

Source§

impl Evaluable<&str> for Pattern<NormalPatternKind>

Source§

impl Evaluable<(&str, &str)> for Header

Source§

impl Evaluable<(&str, &str)> for KVPattern

Source§

impl Evaluable<(&str, &str)> for Query

Source§

impl Evaluable<IpAddr> for Source

Source§

impl Evaluable<Option<&str>> for AnyClient

Source§

impl Evaluable<Option<&str>> for ClientName

Source§

impl<State, Expr, E, Action> Evaluable<State> for Rule<'_, Expr, Action>
where State: ?Sized, Expr: Evaluable<State, Value = Result<bool, E>>, E: EvalRuleError<Action> + Clone, Action: Clone,

Source§

type Value = Option<Action>

Source§

impl<Value, Operator, Expr, State> Evaluable<State> for Exprs<Operator, Expr>
where Operator: BeOperator<Value> + Clone, Expr: Evaluable<State, Value = Value>, State: ?Sized,