pub struct SlotmapTicket { /* private fields */ }Expand description
Holds a ticket (think of it as a reference) to an element stored in the slotmap.
The ticket is used to access the element stored in the slotmap. The ticket is created when the element is inserted into the slotmap and is used to access the element until the element is removed from the slotmap.
Notice that the slotmap implementation ensures that each ticket is unique. If an element is removed from the slotmap, the ticket is invalidated and cannot be used, even if the slot is reused.
You can retrieve the element corresponding to the ticket using the
LocklessSlotmap::get which will also guarantee that the element is not
removed while it is being accessed. This ticket makes no such guarantees.
Trait Implementations§
Source§impl Clone for SlotmapTicket
impl Clone for SlotmapTicket
Source§fn clone(&self) -> SlotmapTicket
fn clone(&self) -> SlotmapTicket
Returns a duplicate 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 moreSource§impl Debug for SlotmapTicket
impl Debug for SlotmapTicket
Source§impl Hash for SlotmapTicket
impl Hash for SlotmapTicket
Source§impl PartialEq for SlotmapTicket
impl PartialEq for SlotmapTicket
impl Copy for SlotmapTicket
impl Eq for SlotmapTicket
impl StructuralPartialEq for SlotmapTicket
Auto Trait Implementations§
impl Freeze for SlotmapTicket
impl RefUnwindSafe for SlotmapTicket
impl Send for SlotmapTicket
impl Sync for SlotmapTicket
impl Unpin for SlotmapTicket
impl UnwindSafe for SlotmapTicket
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