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