pub struct FixedFlatMap<K, V, VS: ValueStorage<V> = EfficientValue> {
occupied: u64,
slots: VS::LazyBox<[VS::Slot; 64]>,
_marker: PhantomData<K>,
}
Fields§
§occupied: u64
§slots: VS::LazyBox<[VS::Slot; 64]>
§_marker: PhantomData<K>
Implementations§
source§impl FixedFlatMap<usize, (), IgnoreValue>
impl FixedFlatMap<usize, (), IgnoreValue>
source§impl<K: Copy + Into<usize> + From<usize>> FixedFlatMap<K, (), IgnoreValue>
impl<K: Copy + Into<usize> + From<usize>> FixedFlatMap<K, (), IgnoreValue>
source§impl<K: Copy + Into<usize> + From<usize>, V, VS: ValueStorage<V>> FixedFlatMap<K, V, VS>
impl<K: Copy + Into<usize> + From<usize>, V, VS: ValueStorage<V>> FixedFlatMap<K, V, VS>
pub fn new() -> Self
pub fn contains(&self, k: K) -> bool
pub fn get(&self, k: K) -> Option<&V>
pub fn entry(&mut self, k: K) -> FixedFlatMapEntry<'_, V, VS>
pub fn insert(&mut self, k: K, v: V)
fn remove(&mut self, k: K) -> Option<V>
pub fn keys(&self) -> impl Iterator<Item = K>
pub fn iter(&self) -> impl Iterator<Item = (K, &V)> + '_
pub fn drain(&mut self) -> impl Iterator<Item = (K, V)> + '_
pub fn clear(&mut self)
Trait Implementations§
source§impl<K: Copy + Into<usize> + From<usize>, V, VS: ValueStorage<V>> Default for FixedFlatMap<K, V, VS>
impl<K: Copy + Into<usize> + From<usize>, V, VS: ValueStorage<V>> Default for FixedFlatMap<K, V, VS>
source§impl<K> PartialEq for FixedFlatMap<K, (), IgnoreValue>
impl<K> PartialEq for FixedFlatMap<K, (), IgnoreValue>
Auto Trait Implementations§
impl<K, V, VS> Freeze for FixedFlatMap<K, V, VS>
impl<K, V, VS> RefUnwindSafe for FixedFlatMap<K, V, VS>where
<VS as ValueStorage<V>>::LazyBox<[<VS as ValueStorage<V>>::Slot; 64]>: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V, VS> Send for FixedFlatMap<K, V, VS>
impl<K, V, VS> Sync for FixedFlatMap<K, V, VS>
impl<K, V, VS> Unpin for FixedFlatMap<K, V, VS>
impl<K, V, VS> UnwindSafe for FixedFlatMap<K, V, VS>where
<VS as ValueStorage<V>>::LazyBox<[<VS as ValueStorage<V>>::Slot; 64]>: UnwindSafe,
K: 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more