Skip to main content

Module where_rule

Module where_rule 

Source
Expand description

EXPRESS WHERE rules, and honesty about the ones not evaluated.

The bundled IFC schemas declare hundreds of rules. This crate has no general expression evaluator, so it implements selected predicates that are provable from direct structure/scalars and reports known unsupported rules rather than skipping them silently.

§Internal split

  • registry.rs: explicit support-state registry.
  • engine.rs: bounded rule invocation.
  • budget.rs: rule execution limits.
  • builtin.rs: implemented native rules.
  • definitions.rs: the native rules over an object’s property sets and type assignments, which rebuild the inverses they read.
  • operand.rs: reading a rule’s operands, and reporting the ones that cannot be read as evaluation errors instead of skipping them.

Structs§

Budget
Limits applied to one validation run.
RuleEntry
One registered rule.

Enums§

Support
Whether this validator evaluates a given rule.

Constants§

RULES
Every rule this validator knows about, implemented or not.

Functions§

evaluate
Evaluate every implemented rule, and record every unimplemented one.
implemented
Every rule this validator does evaluate.
lookup
The registered entry for id, if there is one.
unsupported
Every rule this validator does not evaluate.