SlotSliceMap

Type Alias SlotSliceMap 

Source
pub type SlotSliceMap<K, V> = SliceMap<K, V, SlotMap<K, Range<u32>>>;
Expand description

SliceMap that uses slotmap::SlotMap for range storage

Aliased Type§

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

Implementations§

Source§

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

Source

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

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