Trait smallvec::Array [−][src]
pub unsafe trait Array { type Item; fn size() -> usize; fn ptr(&self) -> *const Self::Item; fn ptr_mut(&mut self) -> *mut Self::Item; }
Types that can be used as the backing store for a SmallVec
Associated Types
type Item
The type of the array's elements.
Required Methods
fn size() -> usize
Returns the number of items the array can hold.
fn ptr(&self) -> *const Self::Item
Returns a pointer to the first element of the array.
fn ptr_mut(&mut self) -> *mut Self::Item
Returns a mutable pointer to the first element of the array.
Implementations on Foreign Types
impl<T> Array for [T; 0]
[src]
impl<T> Array for [T; 0]
impl<T> Array for [T; 1]
[src]
impl<T> Array for [T; 1]
impl<T> Array for [T; 2]
[src]
impl<T> Array for [T; 2]
impl<T> Array for [T; 3]
[src]
impl<T> Array for [T; 3]
impl<T> Array for [T; 4]
[src]
impl<T> Array for [T; 4]
impl<T> Array for [T; 5]
[src]
impl<T> Array for [T; 5]
impl<T> Array for [T; 6]
[src]
impl<T> Array for [T; 6]
impl<T> Array for [T; 7]
[src]
impl<T> Array for [T; 7]
impl<T> Array for [T; 8]
[src]
impl<T> Array for [T; 8]
impl<T> Array for [T; 9]
[src]
impl<T> Array for [T; 9]
impl<T> Array for [T; 10]
[src]
impl<T> Array for [T; 10]
impl<T> Array for [T; 11]
[src]
impl<T> Array for [T; 11]
impl<T> Array for [T; 12]
[src]
impl<T> Array for [T; 12]
impl<T> Array for [T; 13]
[src]
impl<T> Array for [T; 13]
impl<T> Array for [T; 14]
[src]
impl<T> Array for [T; 14]
impl<T> Array for [T; 15]
[src]
impl<T> Array for [T; 15]
impl<T> Array for [T; 16]
[src]
impl<T> Array for [T; 16]
impl<T> Array for [T; 20]
[src]
impl<T> Array for [T; 20]
impl<T> Array for [T; 24]
[src]
impl<T> Array for [T; 24]
impl<T> Array for [T; 32]
[src]
impl<T> Array for [T; 32]
impl<T> Array for [T; 36]
[src]
impl<T> Array for [T; 36]
impl<T> Array for [T; 64]
[src]
impl<T> Array for [T; 64]
impl<T> Array for [T; 128]
[src]
impl<T> Array for [T; 128]
impl<T> Array for [T; 256]
[src]
impl<T> Array for [T; 256]
impl<T> Array for [T; 512]
[src]
impl<T> Array for [T; 512]
impl<T> Array for [T; 1024]
[src]
impl<T> Array for [T; 1024]
impl<T> Array for [T; 2048]
[src]
impl<T> Array for [T; 2048]
impl<T> Array for [T; 4096]
[src]
impl<T> Array for [T; 4096]
impl<T> Array for [T; 8192]
[src]
impl<T> Array for [T; 8192]
impl<T> Array for [T; 16384]
[src]
impl<T> Array for [T; 16384]
impl<T> Array for [T; 32768]
[src]
impl<T> Array for [T; 32768]
impl<T> Array for [T; 65536]
[src]
impl<T> Array for [T; 65536]
impl<T> Array for [T; 131072]
[src]
impl<T> Array for [T; 131072]
impl<T> Array for [T; 262144]
[src]
impl<T> Array for [T; 262144]
impl<T> Array for [T; 524288]
[src]
impl<T> Array for [T; 524288]
impl<T> Array for [T; 1048576]
[src]
impl<T> Array for [T; 1048576]