[][src]Trait arraydeque::Array

pub unsafe trait Array {
    type Item;
    fn as_ptr(&self) -> *const Self::Item;
fn as_mut_ptr(&mut self) -> *mut Self::Item;
fn capacity() -> usize; fn as_slice(&self) -> &[Self::Item] { ... }
fn as_mut_slice(&mut self) -> &mut [Self::Item] { ... } }
[]

Trait for fixed size arrays.

Associated Types

type Item[]

The array’s element type

Required methods

fn as_ptr(&self) -> *const Self::Item[]

Returns a raw pointer to the slice's buffer.

fn as_mut_ptr(&mut self) -> *mut Self::Item[]

Returns an unsafe mutable pointer to the slice's buffer.

fn capacity() -> usize[]

Returns number of element the array can hold

Provided methods

fn as_slice(&self) -> &[Self::Item][]

Converts the array to immutable slice

fn as_mut_slice(&mut self) -> &mut [Self::Item][]

Converts the array to mutable slice

Implementations on Foreign Types

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u16

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

type Item = T

type Index = u32

Implementors