pub trait Conv {
type TNum: ArrayLength;
type Nalg: DimName;
// Provided method
fn new_nalg() -> Self::Nalg { ... }
}
Expand description
Convenience trait, used to define type conversions
Also, this is the only bound to GenericMatrix
type alias, meaning that all of the following are valid GenericMatrix
es:
type NalgebraMatrix = GenericMatrix<i32, nalgebra::U3, nalgebra::U4>;
type TypenumMatrix = GenericMatrix<i32, typenum::U3, typenum::U4>;
type TypenumConstMatrix = GenericMatrix<i32, typenum::Const<3>, typenum::Const<3>>;
// (nalgebra::Const are actually aliased by nalgebra::{U1, U2, ...})
Required Associated Types§
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.