pub trait Array {
type Item;
// Required methods
fn new() -> Self;
fn size() -> usize;
fn as_slice(&self) -> &[Self::Item];
fn as_mut_slice(&mut self) -> &mut [Self::Item];
}Expand description
Types that can be used as the backing store for a SmallVec
Required Associated Types§
Required Methods§
fn new() -> Self
fn size() -> usize
fn as_slice(&self) -> &[Self::Item]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
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.