pub struct Id<K> { /* private fields */ }Expand description
A generational-arena key: the index names the slot, the generation names the occupant. Stale keys fail lookup.
Implementations§
Trait Implementations§
impl<K: Copy> Copy for Id<K>
impl<K: Eq> Eq for Id<K>
Source§impl<K: Ord> Ord for Id<K>
impl<K: Ord> Ord for Id<K>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<K: PartialOrd> PartialOrd for Id<K>
impl<K: PartialOrd> PartialOrd for Id<K>
impl<K: PartialEq> StructuralPartialEq for Id<K>
Auto Trait Implementations§
impl<K> Freeze for Id<K>where
PhantomData<K>: Freeze,
impl<K> RefUnwindSafe for Id<K>where
PhantomData<K>: RefUnwindSafe,
impl<K> Send for Id<K>where
PhantomData<K>: Send,
impl<K> Sync for Id<K>where
PhantomData<K>: Sync,
impl<K> Unpin for Id<K>where
PhantomData<K>: Unpin,
impl<K> UnsafeUnpin for Id<K>where
PhantomData<K>: UnsafeUnpin,
impl<K> UnwindSafe for Id<K>where
PhantomData<K>: 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