Trait smallvec::Array

source ·
pub unsafe trait Array {
    type Item;

    // Required method
    fn size() -> usize;
}
Expand description

Types that can be used as the backing store for a SmallVec.

Required Associated Types§

source

type Item

The type of the array’s elements.

Required Methods§

source

fn size() -> usize

Returns the number of items the array can hold.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Array for [T; 0]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 1]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 2]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 3]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 4]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 5]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 6]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 7]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 8]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 9]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 10]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 11]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 12]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 13]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 14]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 15]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 16]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 17]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 18]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 19]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 20]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 21]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 22]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 23]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 24]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 25]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 26]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 27]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 28]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 29]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 30]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 31]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 32]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 36]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 64]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 96]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 128]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 256]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 512]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 1024]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 1536]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 2048]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 4096]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 8192]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 16384]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 24576]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 32768]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 65536]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 131072]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 262144]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 393216]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 524288]

§

type Item = T

source§

fn size() -> usize

source§

impl<T> Array for [T; 1048576]

§

type Item = T

source§

fn size() -> usize

Implementors§