pub struct Slot<T: CapType = Unspecified> { /* private fields */ }
Expand description
The index of a slot in the initial thread’s root CNode.
Implementations§
Source§impl<T: CapType> Slot<T>
impl<T: CapType> Slot<T>
pub const fn from_index(index: usize) -> Self
pub const fn index(&self) -> usize
pub const fn cptr_bits(&self) -> CPtrBits
pub const fn cptr(&self) -> CPtr
pub const fn cap(&self) -> Cap<T>
pub const fn cast<T1: CapType>(&self) -> Slot<T1>
pub const fn upcast(&self) -> Slot
Trait Implementations§
Source§impl<T: Ord + CapType> Ord for Slot<T>
impl<T: Ord + CapType> Ord for Slot<T>
Source§impl<T: PartialOrd + CapType> PartialOrd for Slot<T>
impl<T: PartialOrd + CapType> PartialOrd for Slot<T>
impl<T: Copy + CapType> Copy for Slot<T>
impl<T: Eq + CapType> Eq for Slot<T>
impl<T: CapType> StructuralPartialEq for Slot<T>
Auto Trait Implementations§
impl<T> Freeze for Slot<T>
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> UnwindSafe for Slot<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)