Type Definition coca::collections::AllocListSet
source · [−]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
sourceimpl<T, I: Capacity> AllocListSet<T, I>
impl<T, I: Capacity> AllocListSet<T, I>
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Constructs a new, empty AllocListSet
with the given capacity.