pub struct InvariantId(/* private fields */);Expand description
A compiler-assigned stable invariant identifier.
Implementations§
Source§impl InvariantId
impl InvariantId
Source§impl InvariantId
impl InvariantId
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Returns the next value, or None when the allocation space is exhausted.
Trait Implementations§
Source§impl Clone for InvariantId
impl Clone for InvariantId
impl Copy for InvariantId
Source§impl Debug for InvariantId
impl Debug for InvariantId
Source§impl Display for InvariantId
impl Display for InvariantId
impl Eq for InvariantId
Source§impl From<InvariantId> for u32
impl From<InvariantId> for u32
Source§fn from(value: InvariantId) -> Self
fn from(value: InvariantId) -> Self
Converts to this type from the input type.
Source§impl Hash for InvariantId
impl Hash for InvariantId
Source§impl Ord for InvariantId
impl Ord for InvariantId
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 PartialEq for InvariantId
impl PartialEq for InvariantId
Source§impl PartialOrd for InvariantId
impl PartialOrd for InvariantId
impl StructuralPartialEq for InvariantId
Auto Trait Implementations§
impl Freeze for InvariantId
impl RefUnwindSafe for InvariantId
impl Send for InvariantId
impl Sync for InvariantId
impl Unpin for InvariantId
impl UnsafeUnpin for InvariantId
impl UnwindSafe for InvariantId
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