#[repr(C)]
pub(crate) union SingleElementOrMultipleSlots<T: Clone + Copy> {
pub(crate) single_element: T,
pub(crate) multiple_slots: MultipleSlots,
}
Fields§
§single_element:T
the slot list contains a single element. No need for an entry in the data file. The element itself is stored in place in the index entry
multiple_slots:MultipleSlots
the slot list ocntains more than one element. This contains the reference to the data file.
Trait Implementations§
source§impl<T: Copy + Clone + Clone + Copy> Clone for SingleElementOrMultipleSlots<T>
impl<T: Copy + Clone + Clone + Copy> Clone for SingleElementOrMultipleSlots<T>
source§fn clone(&self) -> SingleElementOrMultipleSlots<T>
fn clone(&self) -> SingleElementOrMultipleSlots<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Copy + Clone + Copy> Copy for SingleElementOrMultipleSlots<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SingleElementOrMultipleSlots<T>where T: RefUnwindSafe,
impl<T> Send for SingleElementOrMultipleSlots<T>where T: Send,
impl<T> Sync for SingleElementOrMultipleSlots<T>where T: Sync,
impl<T> Unpin for SingleElementOrMultipleSlots<T>where T: Unpin,
impl<T> UnwindSafe for SingleElementOrMultipleSlots<T>where T: 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