Skip to main content

Module slots

Module slots 

Source
Expand description

Shared attribute access for typed geometry views.

Every one of the 112 geometry entities reads positional attributes and must report the same way when one is missing or malformed. Without this, each view re-implements the same error construction and they drift.

§The pattern

A view is a newtype over (EntityId, &Entity). It declares its slots as mod slot constants citing the EXPRESS declaration, then uses Slots to read them. Views own nothing and cost nothing to construct.

Modules§

profile_slot
Attribute slots for the profile families, shared by both directions.
section_slot
Absolute attribute slots for the parameterized profile families.

Structs§

Slots
Attribute reader bound to one entity.