[−][src]Trait smallvec::Array
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]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 1]
[src]
impl<T> Array for [T; 1]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 2]
[src]
impl<T> Array for [T; 2]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 3]
[src]
impl<T> Array for [T; 3]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 4]
[src]
impl<T> Array for [T; 4]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 5]
[src]
impl<T> Array for [T; 5]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 6]
[src]
impl<T> Array for [T; 6]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 7]
[src]
impl<T> Array for [T; 7]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 8]
[src]
impl<T> Array for [T; 8]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 9]
[src]
impl<T> Array for [T; 9]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 10]
[src]
impl<T> Array for [T; 10]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 11]
[src]
impl<T> Array for [T; 11]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 12]
[src]
impl<T> Array for [T; 12]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 13]
[src]
impl<T> Array for [T; 13]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 14]
[src]
impl<T> Array for [T; 14]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 15]
[src]
impl<T> Array for [T; 15]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 16]
[src]
impl<T> Array for [T; 16]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 20]
[src]
impl<T> Array for [T; 20]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 24]
[src]
impl<T> Array for [T; 24]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 32]
[src]
impl<T> Array for [T; 32]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 36]
[src]
impl<T> Array for [T; 36]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 64]
[src]
impl<T> Array for [T; 64]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 128]
[src]
impl<T> Array for [T; 128]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 256]
[src]
impl<T> Array for [T; 256]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 512]
[src]
impl<T> Array for [T; 512]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 1024]
[src]
impl<T> Array for [T; 1024]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 2048]
[src]
impl<T> Array for [T; 2048]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 4096]
[src]
impl<T> Array for [T; 4096]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 8192]
[src]
impl<T> Array for [T; 8192]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 16384]
[src]
impl<T> Array for [T; 16384]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 32768]
[src]
impl<T> Array for [T; 32768]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 65536]
[src]
impl<T> Array for [T; 65536]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 131072]
[src]
impl<T> Array for [T; 131072]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 262144]
[src]
impl<T> Array for [T; 262144]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 524288]
[src]
impl<T> Array for [T; 524288]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T
impl<T> Array for [T; 1048576]
[src]
impl<T> Array for [T; 1048576]
type Item = T
fn size() -> usize
[src]
fn size() -> usize
fn ptr(&self) -> *const T
[src]
fn ptr(&self) -> *const T
fn ptr_mut(&mut self) -> *mut T
[src]
fn ptr_mut(&mut self) -> *mut T