pub trait Array {
type Item: Default;
const SIZE: usize;
// Required methods
fn as_slice(&self) -> &[Self::Item];
fn as_mut_slice(&mut self) -> &mut [Self::Item];
fn new() -> Self;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn as_slice(&self) -> &[Self::Item]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
fn new() -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".