Trait arrayvec::Array[][src]

pub unsafe trait Array {
    type Item;

    const CAPACITY: usize;

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn as_mut_slice(&mut self) -> &mut [Self::Item]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

Trait for fixed size arrays.

This trait is implemented for some specific array sizes, see the implementor list below. At the current state of Rust we can’t make this fully general for every array size.

The following crate features add more array sizes (and they are not enabled by default due to their impact on compliation speed).

Safety

This trait can only be implemented by fixed-size arrays or types with exactly the representation of a fixed size array (of the right element type and capacity).

Normally this trait is an implementation detail of arrayvec and doesn’t need implementing.

Associated Types

type Item[src]

The array’s element type

Loading content...

Associated Constants

const CAPACITY: usize[src]

The array’s element capacity

Loading content...

Required methods

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Loading content...

Implementations on Foreign Types

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

type Item = T

type Index = ()

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

type Item = T

type Index = bool

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; 33][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 39][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; 41][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 47][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; 49][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; 51][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 55][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; 57][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 63][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; 65][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 71][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; 73][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 95][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; 97][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 99][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; 101][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 127][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; 129][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 159][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; 161][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 191][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; 193][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 199][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; 201][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 223][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; 225][src]

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

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

type Item = T

type Index = u8

impl<T> Array for [T; 255][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

Loading content...

Implementors

Loading content...