#[non_exhaustive]#[repr(u8)]pub enum PrettyUnit {
Dimensionless = 1,
Milliseconds = 2,
Sectors = 3,
Millikelvin = 4,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PrettyUnit
impl Clone for PrettyUnit
Source§fn clone(&self) -> PrettyUnit
fn clone(&self) -> PrettyUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrettyUnit
Source§impl Debug for PrettyUnit
impl Debug for PrettyUnit
impl Eq for PrettyUnit
Source§impl Hash for PrettyUnit
impl Hash for PrettyUnit
Source§impl PartialEq for PrettyUnit
impl PartialEq for PrettyUnit
impl StructuralPartialEq for PrettyUnit
Source§impl TryFrom<u8> for PrettyUnit
impl TryFrom<u8> for PrettyUnit
Source§type Error = TryFromPrimitiveError<PrettyUnit>
type Error = TryFromPrimitiveError<PrettyUnit>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PrettyUnit
impl TryFromPrimitive for PrettyUnit
Auto Trait Implementations§
impl Freeze for PrettyUnit
impl RefUnwindSafe for PrettyUnit
impl Send for PrettyUnit
impl Sync for PrettyUnit
impl Unpin for PrettyUnit
impl UnsafeUnpin for PrettyUnit
impl UnwindSafe for PrettyUnit
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