VecDimensionShift4D

Trait VecDimensionShift4D 

Source
pub trait VecDimensionShift4D<T> {
    // Required methods
    fn as_4d_array_no_check(self) -> Vec<[T; 4]>;
    fn to_4d_array_no_check(&self) -> Vec<[T; 4]>;
    fn as_4d_array(self) -> Result<Vec<[T; 4]>, Vec<T>>;
    fn to_4d_array(&self) -> Result<Vec<[T; 4]>, &Vec<T>>;
    fn as_4d_array_truncate(self) -> Vec<[T; 4]>;
    fn to_4d_array_truncate(&mut self) -> Vec<[T; 4]>;
    fn as_4d_array_padding(self, v: T) -> Vec<[T; 4]>;
    fn to_4d_array_padding(&mut self, v: T) -> Vec<[T; 4]>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: Clone + Default> VecDimensionShift4D<T> for Vec<T>

Implementors§