Enum bme280_multibus::Oversampling
source · #[repr(u8)]pub enum Oversampling {
Skip = 0,
X1 = 1,
X2 = 2,
X4 = 3,
X8 = 4,
X16 = 5,
}Expand description
Oversampling settings for temperature, pressure, and humidity data.
Variants§
Skip = 0
Skipped, output set to 0x80000.
X1 = 1
Oversampling × 1
X2 = 2
Oversampling × 2
X4 = 3
Oversampling × 4
X8 = 4
Oversampling × 8
X16 = 5
Oversampling × 16
Implementations§
Trait Implementations§
source§impl Clone for Oversampling
impl Clone for Oversampling
source§fn clone(&self) -> Oversampling
fn clone(&self) -> Oversampling
Returns a copy of the value. Read more
1.0.0 · 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 Oversampling
impl Debug for Oversampling
source§impl Default for Oversampling
impl Default for Oversampling
source§impl From<Oversampling> for u8
impl From<Oversampling> for u8
source§fn from(x: Oversampling) -> Self
fn from(x: Oversampling) -> Self
Converts to this type from the input type.
source§impl Hash for Oversampling
impl Hash for Oversampling
source§impl Ord for Oversampling
impl Ord for Oversampling
source§fn cmp(&self, other: &Oversampling) -> Ordering
fn cmp(&self, other: &Oversampling) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Oversampling
impl PartialEq for Oversampling
source§fn eq(&self, other: &Oversampling) -> bool
fn eq(&self, other: &Oversampling) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Oversampling
impl PartialOrd for Oversampling
source§fn partial_cmp(&self, other: &Oversampling) -> Option<Ordering>
fn partial_cmp(&self, other: &Oversampling) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Oversampling
impl Eq for Oversampling
impl StructuralEq for Oversampling
impl StructuralPartialEq for Oversampling
Auto Trait Implementations§
impl RefUnwindSafe for Oversampling
impl Send for Oversampling
impl Sync for Oversampling
impl Unpin for Oversampling
impl UnwindSafe for Oversampling
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