Expand description
Total representation-item dispatch.
§Why totality matters here
GeometryNode is #[non_exhaustive] and the crate contract says an
unknown family must become a typed Unsupported result, never a panic and
never a silently substituted shape. This dispatcher is the single place
that decides which IFC representation items are implemented, so coverage is
auditable from one table instead of scattered across families.
§Coverage is per release
IMPLEMENTED, PLANNED and PARTIAL together classify every
concrete representation item of IFC4 ADD2 TC1 and IFC4X3 ADD2 that is a
root item rather than nested input; tests/schema_coverage.rs and
tests/lower_dispatch_corpus.rs derive both inventories from the schemas
and fail on an unclassified family.
§Subtypes
Dispatch matches exact type names, because most subtypes change meaning
(IfcGradientCurve is an IfcCompositeCurve whose segments are heights
over a horizontal base curve). A subtype the supertype’s lowering handles
exactly is routed through SPECIALISATIONS, which names the attributes
it adds and why ignoring or checking them is exact.
Structs§
- Specialisation
- A subtype the supertype’s lowering handles exactly.
- Variant
- A variant within a family that is admitted or refused independently.
Enums§
Constants§
- IMPLEMENTED
- Families this crate lowers today, paired with what is still missing.
- PARTIAL
- Variant-level dispositions for partially supported families.
- PLANNED
- Recognized representation items that are not lowered yet.
- SPECIALISATIONS
- Subtypes routed to their supertype’s lowering.
Functions§
- lower_
representation_ item - Lower any representation item into the caller’s session.