Trait HasGeometry

Source
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§

Source

fn id(&self) -> usize

Get the id of the HasGeometry.

Source

fn geometry(&self) -> &Geometry<Float>

Get the Geometry of the HasGeometry.

Implementors§