pub type AllocListSet<T, I = usize> = ListSet<T, AllocStorage<ArrayLayout<T>>, I>;
This is supported on crate feature alloc only.
Expand description

A set based on a globally allocated array.

Examples

use coca::collections::AllocListSet;
let mut map = AllocListSet::<&'static str>::with_capacity(13);
assert_eq!(map.capacity(), 13);

Implementations

Constructs a new, empty AllocListSet with the given capacity.