pub trait Point {
type Coord: Num + Copy + PartialOrd;
const DIM: usize;
// Required method
fn coord(&self, axis: usize) -> Self::Coord;
}
Expand description
Defines a finite-dimensional space in terms of coordinate values along a chosen set of axes
Required Associated Constants§
Required Associated Types§
Sourcetype Coord: Num + Copy + PartialOrd
type Coord: Num + Copy + PartialOrd
The type of the coordinate values
Required Methods§
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.