VecDimensionShift3D

Trait VecDimensionShift3D 

Source
pub trait VecDimensionShift3D<T> {
    // Required methods
    fn as_3d_array_no_check(self) -> Vec<[T; 3]>;
    fn to_3d_array_no_check(&self) -> Vec<[T; 3]>;
    fn as_3d_array(self) -> Result<Vec<[T; 3]>, Vec<T>>;
    fn to_3d_array(&self) -> Result<Vec<[T; 3]>, &Vec<T>>;
    fn as_3d_array_truncate(self) -> Vec<[T; 3]>;
    fn to_3d_array_truncate(&mut self) -> Vec<[T; 3]>;
    fn as_3d_array_padding(self, v: T) -> Vec<[T; 3]>;
    fn to_3d_array_padding(&mut self, v: T) -> Vec<[T; 3]>;
}

Required Methods§

Implementations on Foreign Types§

Source§

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

Implementors§