pub trait CoordinateSystem: Sized {
type Dimension: Unsigned + ArrayLength<f64> + ArrayLength<usize>;
// Provided methods
fn small(_: &Point<Self>) -> f64 { ... }
fn dimension() -> usize { ... }
}
Expand description
CoordinateSystem
marks a struct (usually a unit struct) as representing a coordinate system.
Required Associated Types§
Sourcetype Dimension: Unsigned + ArrayLength<f64> + ArrayLength<usize>
type Dimension: Unsigned + ArrayLength<f64> + ArrayLength<usize>
An associated type representing the dimension of the coordinate system
Provided 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.