Skip to main content

quantity_sets_by_object

Function quantity_sets_by_object 

Source
pub fn quantity_sets_by_object(
    model: &Model,
) -> (AttachedQuantitySets, Vec<PropertyAnomaly>)
Expand description

Every quantity set in the file, keyed by the object carrying it.

Both routes are followed. A set reachable by both appears once per object, with Attachment recording how it arrived: precedence is a caller decision, so the reader must not collapse the distinction here. Sets of one object are ordered by id. Property sets are never returned here, and quantity sets are never returned by property_sets_by_object.

Anomalies report a type object attached by the forbidden relationship, relationships whose targets are missing from the file, the members quantity_set could not resolve (once per set), and, once per set, each top-level quantity whose name an earlier one in the same set already has (PropertyAnomaly::DuplicatePropertyName).