Skip to main content

eval

Function eval 

Source
pub fn eval(
    predicate: &str,
    env: &dyn PredicateEnv,
) -> Result<bool, PredicateError>
Expand description

Evaluate a predicate string against the supplied environment.

An empty string returns Ok(true) — no condition means no constraint. A comma-separated list (a,b,c) is a logical AND; all terms must be true. Whitespace around commas is ignored. Negation (!) is a prefix on any atom.