#[non_exhaustive]#[repr(u8)]pub enum DisplayMeasure {
Metric = 0,
Statute = 1,
Nautical = 2,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayMeasure
impl Clone for DisplayMeasure
Source§fn clone(&self) -> DisplayMeasure
fn clone(&self) -> DisplayMeasure
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 moreSource§impl Debug for DisplayMeasure
impl Debug for DisplayMeasure
Source§impl Hash for DisplayMeasure
impl Hash for DisplayMeasure
Source§impl PartialEq for DisplayMeasure
impl PartialEq for DisplayMeasure
Source§fn eq(&self, other: &DisplayMeasure) -> bool
fn eq(&self, other: &DisplayMeasure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DisplayMeasure
impl Eq for DisplayMeasure
impl StructuralPartialEq for DisplayMeasure
Auto Trait Implementations§
impl Freeze for DisplayMeasure
impl RefUnwindSafe for DisplayMeasure
impl Send for DisplayMeasure
impl Sync for DisplayMeasure
impl Unpin for DisplayMeasure
impl UnsafeUnpin for DisplayMeasure
impl UnwindSafe for DisplayMeasure
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