smallvec

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Array for [T; 0]

Source§

impl<T> Array for [T; 1]

Source§

impl<T> Array for [T; 2]

Source§

impl<T> Array for [T; 3]

Source§

impl<T> Array for [T; 4]

Source§

impl<T> Array for [T; 5]

Source§

impl<T> Array for [T; 6]

Source§

impl<T> Array for [T; 7]

Source§

impl<T> Array for [T; 8]

Source§

impl<T> Array for [T; 9]

Source§

impl<T> Array for [T; 10]

Source§

impl<T> Array for [T; 11]

Source§

impl<T> Array for [T; 12]

Source§

impl<T> Array for [T; 13]

Source§

impl<T> Array for [T; 14]

Source§

impl<T> Array for [T; 15]

Source§

impl<T> Array for [T; 16]

Source§

impl<T> Array for [T; 17]

Source§

impl<T> Array for [T; 18]

Source§

impl<T> Array for [T; 19]

Source§

impl<T> Array for [T; 20]

Source§

impl<T> Array for [T; 21]

Source§

impl<T> Array for [T; 22]

Source§

impl<T> Array for [T; 23]

Source§

impl<T> Array for [T; 24]

Source§

impl<T> Array for [T; 25]

Source§

impl<T> Array for [T; 26]

Source§

impl<T> Array for [T; 27]

Source§

impl<T> Array for [T; 28]

Source§

impl<T> Array for [T; 29]

Source§

impl<T> Array for [T; 30]

Source§

impl<T> Array for [T; 31]

Source§

impl<T> Array for [T; 32]

Source§

impl<T> Array for [T; 36]

Source§

impl<T> Array for [T; 64]

Source§

impl<T> Array for [T; 96]

Source§

impl<T> Array for [T; 128]

Source§

impl<T> Array for [T; 256]

Source§

impl<T> Array for [T; 512]

Source§

impl<T> Array for [T; 1024]

Source§

impl<T> Array for [T; 1536]

Source§

impl<T> Array for [T; 2048]

Source§

impl<T> Array for [T; 4096]

Source§

impl<T> Array for [T; 8192]

Source§

impl<T> Array for [T; 16384]

Source§

impl<T> Array for [T; 24576]

Source§

impl<T> Array for [T; 32768]

Source§

impl<T> Array for [T; 65536]

Source§

impl<T> Array for [T; 131072]

Source§

impl<T> Array for [T; 262144]

Source§

impl<T> Array for [T; 393216]

Source§

impl<T> Array for [T; 524288]

Source§

impl<T> Array for [T; 1048576]

Implementors§