pub trait TVector<F: Float + Debug> {
// Required methods
fn new(v: &Vec<F>) -> Self;
fn prec_eq(&self, e: F, v: &impl TVector<F>) -> bool;
fn to_vec(&self) -> Vec<F>;
fn me(&self) -> &[F];
fn dot(&self, a: &impl TVector<F>) -> F;
fn dot_mv(&self, m: &impl TMatrix<F>) -> Self;
fn cross(&self, b: &impl TVector<F>) -> Self;
}Expand description
TVector
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.