pub trait Vector<const N: usize>:
Clone
+ Copy
+ Debug
+ PartialEq
+ Into<Value>
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Self::Component, Output = Self>
+ Div<Self::Component, Output = Self>
+ AddAssign
+ SubAssign
+ Mul<Self::Component, Output = Self>
+ Div<Self::Component, Output = Self>
+ ElementWiseMul<Output = Self>
+ ElementWiseDiv<Output = Self>
+ Dot<Product = Self::Component>
+ Cross {
type Component: DataValue;
// Required methods
fn zero() -> Self;
fn get(&self, index: usize) -> &Self::Component;
fn get_mut(&mut self, index: usize) -> &mut Self::Component;
unsafe fn get_unchecked(&self, index: usize) -> &Self::Component;
unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut Self::Component;
}Required Associated Types§
Required Methods§
fn zero() -> Self
fn get(&self, index: usize) -> &Self::Component
fn get_mut(&mut self, index: usize) -> &mut Self::Component
unsafe fn get_unchecked(&self, index: usize) -> &Self::Component
unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut Self::Component
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.