pattern_matches

Function pattern_matches 

Source
pub fn pattern_matches(
    pattern: &Pattern,
    value: &Value,
    eval_literal: &dyn Fn(&Literal) -> Value,
) -> Result<bool, InterpreterError>
Expand description

Check if a pattern matches a value (legacy compatibility)

ยงComplexity

Cyclomatic complexity: 2 (within Toyota Way limits)