pub trait Vector {
// Required methods
fn dimension(&self) -> usize;
fn add(&self, other: &Self) -> Self;
fn sub(&self, other: &Self) -> Self;
fn init(dimension: usize) -> Self;
fn basis_vector(&self, position: usize) -> Self;
}Expand description
The Vector trait describes the general properties of an element in a vector space.
Required Methods§
Sourcefn basis_vector(&self, position: usize) -> Self
fn basis_vector(&self, position: usize) -> Self
Basis vector
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".