#[non_exhaustive]pub enum SensorVariant {
Scd40,
Scd41,
Scd43,
}Expand description
SCD4x sensor variant.
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 SensorVariant
impl Clone for SensorVariant
Source§fn clone(&self) -> SensorVariant
fn clone(&self) -> SensorVariant
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 SensorVariant
Source§impl Debug for SensorVariant
impl Debug for SensorVariant
impl Eq for SensorVariant
Source§impl Format for SensorVariant
impl Format for SensorVariant
Source§impl Hash for SensorVariant
impl Hash for SensorVariant
Source§impl PartialEq for SensorVariant
impl PartialEq for SensorVariant
Source§fn eq(&self, other: &SensorVariant) -> bool
fn eq(&self, other: &SensorVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SensorVariant
Auto Trait Implementations§
impl Freeze for SensorVariant
impl RefUnwindSafe for SensorVariant
impl Send for SensorVariant
impl Sync for SensorVariant
impl Unpin for SensorVariant
impl UnsafeUnpin for SensorVariant
impl UnwindSafe for SensorVariant
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