Trait smallvec::ToSmallVec

source ·
pub trait ToSmallVec<A: Array> {
    // Required method
    fn to_smallvec(&self) -> SmallVec<A> ;
}
Expand description

Convenience trait for constructing a SmallVec

Required Methods§

source

fn to_smallvec(&self) -> SmallVec<A>

Construct a new SmallVec from a slice.

Implementations on Foreign Types§

source§

impl<A: Array> ToSmallVec<A> for [A::Item]
where A::Item: Copy,

Implementors§