[−][src]Trait tinyvec::Arrayish
A trait for types that can be the backing store of an [ArrayishVec
].
You are not generally expected to need to implement this yourself. You can
if you want I guess. Impls are provided for arrays of length 0..=32
, 33,
and powers of 2 up to 4096. Additional lengths can probably be added upon
request.
Safety
As a reminder, the Arrayish
trait is 100% safe so unsafe code must not
rely on an instance of the trait being correct.
Associated Types
Loading content...Associated Constants
const CAPACITY: usize
The number of slots in the thing.
Required methods
fn slice(&self) -> &[Self::Item]
Gives a shared slice over the whole thing.
fn slice_mut(&mut self) -> &mut [Self::Item]
Gives a unique slice over the whole thing.