Skip to main content

ifc_material/
usage.rs

1//! Resolving which material applies to a given element.
2//!
3//! Material can be assigned to the element or to its type, with the element
4//! winning. Resolution order is a common source of wrong answers.
5
6//! ## Internal split
7//!
8//! - `assignment.rs`: RelAssociatesMaterial view.
9//! - `index.rs`: lookup plumbing shared by the view and the index.
10//! - `resolution.rs`: bounded association resolution.
11
12mod assignment;
13mod index;
14mod resolution;
15
16pub use assignment::MaterialAssignment;
17pub use index::MaterialIndex;
18#[cfg(test)]
19pub(crate) use resolution::SELECT_MEMBERS;
20pub use resolution::{
21    AssignmentSource, MaterialDefinition, MaterialUsageDefinition, ResolvedAssignment,
22    ResolvedMaterialSelect,
23};