Skip to main content

ifc_validate/
where_rule.rs

1//! EXPRESS `WHERE` rules, and honesty about the ones not evaluated.
2//!
3//! The bundled IFC schemas declare hundreds of rules. This crate has no
4//! general expression evaluator, so it implements selected predicates that
5//! are provable from direct structure/scalars and *reports* known unsupported
6//! rules rather than skipping them silently.
7//!
8//! ## Internal split
9//!
10//! - `registry.rs`: explicit support-state registry.
11//! - `engine.rs`: bounded rule invocation.
12//! - `budget.rs`: rule execution limits.
13//! - `builtin.rs`: implemented native rules.
14//! - `definitions.rs`: the native rules over an object's property sets and
15//!   type assignments, which rebuild the inverses they read.
16//! - `operand.rs`: reading a rule's operands, and reporting the ones that
17//!   cannot be read as evaluation errors instead of skipping them.
18
19mod budget;
20mod builtin;
21mod definitions;
22mod engine;
23mod operand;
24mod registry;
25
26pub use budget::Budget;
27pub use engine::evaluate;
28pub(crate) use engine::evaluate_except;
29pub use registry::{implemented, lookup, unsupported, RuleEntry, Support, RULES};