pub trait UnitVector {
// Required method
fn unit(&self) -> Self;
}
Expand description
A trait to normalize structs (mostly to use on nalgebra vectors without needing nalgebra::RealField
)
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.