Trait smallvec::Array

source ·
pub unsafe trait Array {
    type Item;

    fn size() -> usize;
    fn ptr(&self) -> *const Self::Item;
    fn ptr_mut(&mut self) -> *mut Self::Item;
}
Expand description

Types that can be used as the backing store for a SmallVec

Required Associated Types§

The type of the array’s elements.

Required Methods§

Returns the number of items the array can hold.

Returns a pointer to the first element of the array.

Returns a mutable pointer to the first element of the array.

Implementations on Foreign Types§

Implementors§