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