Skip to main content

PropertyAxis

Trait PropertyAxis 

Source
pub trait PropertyAxis: PropertyAxis {
    // Required method
    fn id_family() -> IdFamily;
}
Expand description

Marker trait selecting which axis of a topology view a property layer keys against (elements, relations, or incidences).

Built-in axis markers — ElementAxis, RelationAxis, IncidenceAxis — opt into the corresponding [*Index] topology trait when paired with [DenseWeights] or [SparseWeights] storage. The trait itself only reports the layer’s IdFamily; per-axis topology accessors live in inherent impls on each storage type for each axis marker.

§Performance

perf: unspecified; this is a metadata trait.

Required Methods§

Source

fn id_family() -> IdFamily

Returns the IdFamily this axis selects from a property layer.

§Performance

This function is O(1).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§