pub struct SlotIndex { /* private fields */ }
Expand description
Provides links between slots and elements.
The benefit of separating this struct from the elements is that it is unconditionally Copy
and Default
. It also provides better locality for both the indices and the elements which
could help with iteration or very large structs.
Trait Implementations§
impl Copy for Slot
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
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