#[repr(u8)]
pub(crate) enum OccupiedEnum<'a, T> {
Free,
ZeroSlots,
OneSlotInIndex(&'a T),
MultipleSlots(&'a MultipleSlots),
}
Variants§
Free
this spot is not occupied. ALL other enum values ARE occupied.
ZeroSlots
zero slots in the slot list
OneSlotInIndex(&'a T)
one slot in the slot list, it is stored in the index
MultipleSlots(&'a MultipleSlots)
data is stored in data file
Trait Implementations§
source§impl<'a, T: Debug> Debug for OccupiedEnum<'a, T>
impl<'a, T: Debug> Debug for OccupiedEnum<'a, T>
source§impl<'a, T: PartialEq> PartialEq<OccupiedEnum<'a, T>> for OccupiedEnum<'a, T>
impl<'a, T: PartialEq> PartialEq<OccupiedEnum<'a, T>> for OccupiedEnum<'a, T>
source§fn eq(&self, other: &OccupiedEnum<'a, T>) -> bool
fn eq(&self, other: &OccupiedEnum<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, T: Eq> Eq for OccupiedEnum<'a, T>
impl<'a, T> StructuralEq for OccupiedEnum<'a, T>
impl<'a, T> StructuralPartialEq for OccupiedEnum<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for OccupiedEnum<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for OccupiedEnum<'a, T>where T: Sync,
impl<'a, T> Sync for OccupiedEnum<'a, T>where T: Sync,
impl<'a, T> Unpin for OccupiedEnum<'a, T>
impl<'a, T> UnwindSafe for OccupiedEnum<'a, T>where T: RefUnwindSafe,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more