Trait core::array::FixedSizeArray
[−]
[src]
pub trait FixedSizeArray<T> {
fn as_slice(&self) -> &[T];
fn as_mut_slice(&mut self) -> &mut [T];
}Unstable
Utility trait implemented only on arrays of fixed size
This trait can be used to implement other traits on fixed-size arrays without causing much metadata bloat.
Required Methods
fn as_slice(&self) -> &[T]
Unstable
Converts the array to immutable slice
fn as_mut_slice(&mut self) -> &mut [T]
Unstable
Converts the array to mutable slice
Implementors
impl<T> FixedSizeArray<T> for [T; 0]impl<T> FixedSizeArray<T> for [T; 1]impl<T> FixedSizeArray<T> for [T; 2]impl<T> FixedSizeArray<T> for [T; 3]impl<T> FixedSizeArray<T> for [T; 4]impl<T> FixedSizeArray<T> for [T; 5]impl<T> FixedSizeArray<T> for [T; 6]impl<T> FixedSizeArray<T> for [T; 7]impl<T> FixedSizeArray<T> for [T; 8]impl<T> FixedSizeArray<T> for [T; 9]impl<T> FixedSizeArray<T> for [T; 10]impl<T> FixedSizeArray<T> for [T; 11]impl<T> FixedSizeArray<T> for [T; 12]impl<T> FixedSizeArray<T> for [T; 13]impl<T> FixedSizeArray<T> for [T; 14]impl<T> FixedSizeArray<T> for [T; 15]impl<T> FixedSizeArray<T> for [T; 16]impl<T> FixedSizeArray<T> for [T; 17]impl<T> FixedSizeArray<T> for [T; 18]impl<T> FixedSizeArray<T> for [T; 19]impl<T> FixedSizeArray<T> for [T; 20]impl<T> FixedSizeArray<T> for [T; 21]impl<T> FixedSizeArray<T> for [T; 22]impl<T> FixedSizeArray<T> for [T; 23]impl<T> FixedSizeArray<T> for [T; 24]impl<T> FixedSizeArray<T> for [T; 25]impl<T> FixedSizeArray<T> for [T; 26]impl<T> FixedSizeArray<T> for [T; 27]impl<T> FixedSizeArray<T> for [T; 28]impl<T> FixedSizeArray<T> for [T; 29]impl<T> FixedSizeArray<T> for [T; 30]impl<T> FixedSizeArray<T> for [T; 31]impl<T> FixedSizeArray<T> for [T; 32]