pub trait AxisIndex<A: PropertyAxis>: TopologyBase {
// Required method
fn axis_bound(&self) -> usize;
}Expand description
Axis-aware topology bound accessor.
Implemented for every topology view that exposes the per-axis index trait
ElementIndex / RelationIndex / IncidenceIndex. Exists so that
generic constructors on [DenseWeights] and [SparseWeights] can dispatch
to the right element_bound / relation_bound / incidence_bound accessor
from a single body, without parallel per-axis impl blocks.
External code does not normally implement this trait; it is pub only
because it appears as a bound in pub constructor signatures.
§Performance
axis_bound is O(1) — it forwards to the topology’s own
*_bound accessor.
Required Methods§
Sourcefn axis_bound(&self) -> usize
fn axis_bound(&self) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".