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§
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]>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".