pub struct Enum(pub u64);
Available on
doc
only.Tuple Fields§
§0: u64
Implementations§
source§impl Enum
impl Enum
pub const DefaultVariant: Self = _
sourcepub const DocumentedVariant: Self = _
pub const DocumentedVariant: Self = _
We can also put doc comments and other attributes on a variant.
sourcepub const VariantWithValue: Self = _
pub const VariantWithValue: Self = _
Or, we can assign values to a variant.
sourcepub const VariantWithComputedValue: Self = _
pub const VariantWithComputedValue: Self = _
We can also refer to the values of other variants.
Trait Implementations§
source§impl PartialEq for Enum
impl PartialEq for Enum
impl Copy for Enum
impl Eq for Enum
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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