pub trait Geometry {
type T: Scalar;
type Point<'a>: Point<T = Self::T>
where Self: 'a;
type PointIter<'a>: Iterator<Item = Self::Point<'a>>
where Self: 'a;
// Required methods
fn points(&self) -> Self::PointIter<'_>;
fn point_count(&self) -> usize;
fn degree(&self) -> usize;
}Expand description
The geometry of an entity
The geometry contains information about all points that make up the entity.
Required Associated Types§
Required Methods§
Sourcefn point_count(&self) -> usize
fn point_count(&self) -> usize
Point count
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.