pub trait Spatial<V>: Identifiable + Coordinate<V> { }Expand description
Marks entities that have spatial semantics.
This is a composite trait that combines:
Identifiable— uniquely tracked nodesCoordinate<V>— N-dimensional position or location
It does not require a metric, allowing support for:
- Symbolic zones
- Discrete lattice structures
- Topological graphs with no distance definition
Use this to model anything located in space—regardless of how space is defined.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".