pub struct Slot<T> {
pub owner: OwnerId,
pub order: u64,
pub item: T,
}Expand description
One registered item.
Fields§
§owner: OwnerId§order: u64The order it was registered in, across the registry.
item: TTrait Implementations§
impl<T> StructuralPartialEq for Slot<T>
Auto Trait Implementations§
impl<T> Freeze for Slot<T>where
T: Freeze,
impl<T> RefUnwindSafe for Slot<T>where
T: RefUnwindSafe,
impl<T> Send for Slot<T>where
T: Send,
impl<T> Sync for Slot<T>where
T: Sync,
impl<T> Unpin for Slot<T>where
T: Unpin,
impl<T> UnsafeUnpin for Slot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Slot<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