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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, const N: usize> Array for [T; N]

Implementors§