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