pub struct SparseKey { /* private fields */ }Expand description
A key that can be used to access elements in a SparseSet, the key is unique for each element, and it is only valid for the SparseSet it was created in.
The key should be stored only runtime, it doesn’t make sense to serialize it since the SparseSet data is not persistent
Every key generated by the same SparseSet is unique, they will not repeat even if the element is removed and new ones are added.
Trait Implementations§
impl Copy for SparseKey
impl Eq for SparseKey
impl StructuralPartialEq for SparseKey
Auto Trait Implementations§
impl Freeze for SparseKey
impl RefUnwindSafe for SparseKey
impl Send for SparseKey
impl Sync for SparseKey
impl Unpin for SparseKey
impl UnwindSafe for SparseKey
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