pub trait Point<V>: Sized + Sub<Self, Output = V>where
V: AdditiveGroup + GroupAction<Self>,{
// Required methods
fn to_vector(self) -> V;
fn from_vector(vector: V) -> Self;
// Provided method
fn origin() -> Self { ... }
}
Expand description
Point types convertible to and from a vector type, with difference function that follows from the free and transitive group action
Required Methods§
fn to_vector(self) -> V
fn from_vector(vector: V) -> Self
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.