Module smallvec_v1

Source
Available on crate feature smallvec-v1 only.
Expand description

A alternative Vec1 implementation backed by an SmallVec1.

§Construction Macro

A macro similar to vec! or vec1! does exist and is re-exported in this module as smallvec1.

Due to limitations in rust we can’t properly document it directly without either giving it strange names or ending up with name collisions once we support smallvec v2 in the future (without introducing a braking change).

§Example

use vec1::smallvec_v1::{smallvec1, SmallVec1};
let v: SmallVec1<[u8; 4]> = smallvec1![1u8, 2];
assert_eq!(&*v, &*vec![1u8,2]);

Structs§

SmallVec1
smallvec::SmallVec wrapper which guarantees to have at least 1 element.