[][src]Trait smallvec::Array

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.

Loading content...

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.

Loading content...

Implementations on Foreign Types

impl<T> Array for [T; 0][src]

type Item = T

impl<T> Array for [T; 1][src]

type Item = T

impl<T> Array for [T; 2][src]

type Item = T

impl<T> Array for [T; 3][src]

type Item = T

impl<T> Array for [T; 4][src]

type Item = T

impl<T> Array for [T; 5][src]

type Item = T

impl<T> Array for [T; 6][src]

type Item = T

impl<T> Array for [T; 7][src]

type Item = T

impl<T> Array for [T; 8][src]

type Item = T

impl<T> Array for [T; 9][src]

type Item = T

impl<T> Array for [T; 10][src]

type Item = T

impl<T> Array for [T; 11][src]

type Item = T

impl<T> Array for [T; 12][src]

type Item = T

impl<T> Array for [T; 13][src]

type Item = T

impl<T> Array for [T; 14][src]

type Item = T

impl<T> Array for [T; 15][src]

type Item = T

impl<T> Array for [T; 16][src]

type Item = T

impl<T> Array for [T; 20][src]

type Item = T

impl<T> Array for [T; 24][src]

type Item = T

impl<T> Array for [T; 32][src]

type Item = T

impl<T> Array for [T; 36][src]

type Item = T

impl<T> Array for [T; 64][src]

type Item = T

impl<T> Array for [T; 128][src]

type Item = T

impl<T> Array for [T; 256][src]

type Item = T

impl<T> Array for [T; 512][src]

type Item = T

impl<T> Array for [T; 1024][src]

type Item = T

impl<T> Array for [T; 2048][src]

type Item = T

impl<T> Array for [T; 4096][src]

type Item = T

impl<T> Array for [T; 8192][src]

type Item = T

impl<T> Array for [T; 16384][src]

type Item = T

impl<T> Array for [T; 32768][src]

type Item = T

impl<T> Array for [T; 65536][src]

type Item = T

impl<T> Array for [T; 131072][src]

type Item = T

impl<T> Array for [T; 262144][src]

type Item = T

impl<T> Array for [T; 524288][src]

type Item = T

impl<T> Array for [T; 1048576][src]

type Item = T

Loading content...

Implementors

Loading content...