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