pub trait UnflattenEach<T, const K: usize> {
type Unflattened<const N: usize, const M: usize>: ?Sized;
// Required methods
fn unflatten_each_ref<const N: usize, const M: usize>(
&self,
) -> &Self::Unflattened<N, M>;
fn unflatten_each_mut<const N: usize, const M: usize>(
&mut self,
) -> &mut Self::Unflattened<N, M>;
}Expand description
Unflattening of each element of [[T; K]] or [[T; K]; L], see crate-level
documentation for examples.
The same conversions are available as free const fns, see unflatten_each_ref(),
unflatten_each_mut(), unflatten_each_array_ref() and
unflatten_each_array_mut().
Required Associated Types§
Sourcetype Unflattened<const N: usize, const M: usize>: ?Sized
type Unflattened<const N: usize, const M: usize>: ?Sized
[[[T; N]; M]] for slices and [[[T; N]; M]; L] for arrays
Required Methods§
Sourcefn unflatten_each_ref<const N: usize, const M: usize>(
&self,
) -> &Self::Unflattened<N, M>
fn unflatten_each_ref<const N: usize, const M: usize>( &self, ) -> &Self::Unflattened<N, M>
Unflatten each element to get &[[[T; N]; M]] or &[[[T; N]; M]; L], where
K == N * M
Sourcefn unflatten_each_mut<const N: usize, const M: usize>(
&mut self,
) -> &mut Self::Unflattened<N, M>
fn unflatten_each_mut<const N: usize, const M: usize>( &mut self, ) -> &mut Self::Unflattened<N, M>
Unflatten each element to get &mut [[[T; N]; M]] or &mut [[[T; N]; M]; L],
where K == N * M
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".