Skip to main content

eval_pattern

Function eval_pattern 

Source
pub fn eval_pattern(
    pattern: &Pattern,
    observations: &[Observation],
    store: Option<&ObjectStore>,
) -> Result<MatchResult, MatchError>
Expand description

Evaluate a whole pattern against a list of observations.

Phase 1: single observations and observation-level AND/OR. FOLLOWEDBY and qualifiers (WITHIN/REPEATS/START..STOP) are parsed but return MatchError::Unsupported rather than silently passing.