pub struct BitReclaimMap<K: ?Sized + ToIndex, V, const N: usize> {
map: IndexMap<K, V, N>,
free: BitAlloc<N>,
}Expand description
This is an IndexMap that additionally tracks which indices are occupied through a bitset.
Fields§
§map: IndexMap<K, V, N>§free: BitAlloc<N>Implementations§
Trait Implementations§
Source§impl<K: ?Sized + ToIndex, V, const N: usize> GetMut<K> for BitReclaimMap<K, V, N>
impl<K: ?Sized + ToIndex, V, const N: usize> GetMut<K> for BitReclaimMap<K, V, N>
fn get_mut<Q: Borrow<K>>(&mut self, index: Q) -> Option<&mut Self::Output>
fn get2_mut<Q: Borrow<K>>( &mut self, index1: Q, index2: Q, ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>)
fn get3_mut<Q: Borrow<K>>( &mut self, index1: Q, index2: Q, index3: Q, ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>, Option<&mut Self::Output>)
Auto Trait Implementations§
impl<K, V, const N: usize> Freeze for BitReclaimMap<K, V, N>
impl<K, V, const N: usize> RefUnwindSafe for BitReclaimMap<K, V, N>
impl<K, V, const N: usize> !Send for BitReclaimMap<K, V, N>
impl<K, V, const N: usize> !Sync for BitReclaimMap<K, V, N>
impl<K, V, const N: usize> Unpin for BitReclaimMap<K, V, N>
impl<K, V, const N: usize> UnwindSafe for BitReclaimMap<K, V, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more