pub struct EnumVariantId(/* private fields */);Expand description
A compiler-assigned stable enum variant identifier.
Implementations§
Source§impl EnumVariantId
impl EnumVariantId
Source§impl EnumVariantId
impl EnumVariantId
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 EnumVariantId
impl Clone for EnumVariantId
impl Copy for EnumVariantId
Source§impl Debug for EnumVariantId
impl Debug for EnumVariantId
Source§impl Display for EnumVariantId
impl Display for EnumVariantId
impl Eq for EnumVariantId
Source§impl From<EnumVariantId> for u32
impl From<EnumVariantId> for u32
Source§fn from(value: EnumVariantId) -> Self
fn from(value: EnumVariantId) -> Self
Converts to this type from the input type.
Source§impl Hash for EnumVariantId
impl Hash for EnumVariantId
Source§impl Ord for EnumVariantId
impl Ord for EnumVariantId
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 EnumVariantId
impl PartialEq for EnumVariantId
Source§impl PartialOrd for EnumVariantId
impl PartialOrd for EnumVariantId
impl StructuralPartialEq for EnumVariantId
Auto Trait Implementations§
impl Freeze for EnumVariantId
impl RefUnwindSafe for EnumVariantId
impl Send for EnumVariantId
impl Sync for EnumVariantId
impl Unpin for EnumVariantId
impl UnsafeUnpin for EnumVariantId
impl UnwindSafe for EnumVariantId
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