SecSliceMap

Type Alias SecSliceMap 

Source
pub type SecSliceMap<K, V> = SliceMap<K, V, SecondaryMap<K, Range<u32>>>;
Expand description

SliceMap that uses slotmap::SecondaryMap for range storage

Aliased Type§

pub struct SecSliceMap<K, V> { /* private fields */ }

Implementations§

Source§

impl<K, V> SecSliceMap<K, V>
where K: Key, V: Clone,

Source

pub fn add_items<ITEMS>(&mut self, key: K, new_items: ITEMS)
where ITEMS: AsRef<[V]>,

Creates a new slice with all items from an iterable of owned or borrowed V items. Accepts arrays, slices, or any other AsRef<[V]> type. Will panic if the capacity of u32::MAX items is reached.