Skip to main content

spatial_placements

Function spatial_placements 

Source
pub fn spatial_placements(
    model: &Model,
) -> Result<(BTreeMap<EntityId, SpatialPlacement>, Vec<SystemAnomaly>), SchemaResolutionError>
Expand description

Read spatial containment and referencing for every element that has either.

Elements with no spatial relationship are absent from the map rather than present-and-empty: absence is the file’s actual statement.

§Errors

SchemaResolutionError when the model’s FILE_SCHEMA binds no release this crate is verified for (see crate::schema_of); the fixed slots above are pinned against each verified release’s table.