pub trait Array {
type Item;
const SIZE: usize;
// Required methods
fn as_mut_slice(&mut self) -> &mut [Self::Item];
fn as_slice(&self) -> &[Self::Item];
}Expand description
All supported (up to 32) Arrays implement this trait.
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn as_mut_slice(&mut self) -> &mut [Self::Item]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
Converts into a mutable slice.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.