Struct datazoo::enum_multimap::EnumMultimap
source · pub struct EnumMultimap<K: EnumSetType, V, const CLM: usize> { /* private fields */ }
Expand description
A multimap stored in a JaggedArray
.
The key set need to be bound and exhaustively known at compile time,
ie: it must be an enum derived with #[derive(EnumSetType)]
.
Use it as follow:
EnumMultimap<MyEnumSet, ModifyIndex, { (MyEnumSet::BIT_WIDTH - 1) as usize }>
Implementations§
source§impl<K: EnumSetType, V, const CLM: usize> EnumMultimap<K, V, CLM>
impl<K: EnumSetType, V, const CLM: usize> EnumMultimap<K, V, CLM>
Trait Implementations§
Auto Trait Implementations§
impl<K, V, const CLM: usize> RefUnwindSafe for EnumMultimap<K, V, CLM>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<K, V, const CLM: usize> Send for EnumMultimap<K, V, CLM>where K: Send, V: Send,
impl<K, V, const CLM: usize> Sync for EnumMultimap<K, V, CLM>where K: Sync, V: Sync,
impl<K, V, const CLM: usize> Unpin for EnumMultimap<K, V, CLM>where K: Unpin,
impl<K, V, const CLM: usize> UnwindSafe for EnumMultimap<K, V, CLM>where K: UnwindSafe, V: UnwindSafe,
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