pub trait HasGeometry {
// Required methods
fn id(&self) -> usize;
fn geometry(&self) -> &Geometry<Float>;
}Expand description
A trait for types that have a Geometry.
Helps abstract away this property so the helper methods can be generalized.
Required Methods§
Sourcefn id(&self) -> usize
fn id(&self) -> usize
Get the id of the HasGeometry.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".