pub struct SlotId { /* private fields */ }Implementations§
Source§impl SlotId
impl SlotId
pub const INVALID: Self
pub const TAG_BITS: u32 = TAG_BITS
pub const TAG_MASK: u32 = TAG_MASK
pub const STATE_BITS: u32 = STATE_BITS
pub const STATE_MASK: u32 = STATE_MASK
pub const OCCUPIED_TAG: u32 = OCCUPIED_TAG
pub const fn new(index: u32, generation: u32) -> Self
Sourcepub const unsafe fn new_unchecked(index: u32, generation: u32) -> Self
pub const unsafe fn new_unchecked(index: u32, generation: u32) -> Self
§Safety
generation, when masked out with STATE_MASK, must equal OCCUPIED_TAG.
pub const fn index(self) -> u32
pub const fn generation(self) -> u32
pub const fn tag(self) -> u32
Trait Implementations§
impl Copy for SlotId
impl Eq for SlotId
Source§impl Ord for SlotId
impl Ord for SlotId
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
Auto Trait Implementations§
impl Freeze for SlotId
impl RefUnwindSafe for SlotId
impl Send for SlotId
impl Sync for SlotId
impl Unpin for SlotId
impl UnsafeUnpin for SlotId
impl UnwindSafe for SlotId
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