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
.