[][src]Type Definition coca::vec::ArrayVec

type ArrayVec<E, const C: usize> = Vec<E, InlineStorage<E, C>, usize>;
This is supported on crate feature nightly only.

A vector using an inline array for storage.

Examples

let mut vec = coca::ArrayVec::<char, 3>::new();
vec.push('a');
vec.push('b');
vec.push('c');
assert!(vec.try_push('d').is_err());