Skip to main content

preempted

Function preempted 

Source
pub fn preempted(engine: &Engine, program: &RuleProgram) -> Vec<Preemption>
Expand description

The rules of program that engine preempts: at most one finding per rule, an instance it simplifies to something larger than the rule’s own result would simplify to (PreemptionKind::Lost, the first found), or else, when the engine applies the rule to none of the instances the rule applies to, the first of those (PreemptionKind::Shadowed). engine must link the program’s groups. Rules for floats as values and identities the directed engine does not use are skipped.