#[repr(C)]pub struct PamojaSht3xMeasurement {
pub temperature_raw: u16,
pub humidity_raw: u16,
pub milli_celsius: i32,
pub celsius: f32,
pub milli_fahrenheit: i32,
pub fahrenheit: f32,
pub milli_percent: u32,
pub relative_humidity: f32,
}Expand description
A decoded SHT3x temperature and humidity pair.
Fields§
§temperature_raw: u16The raw temperature word.
humidity_raw: u16The raw humidity word.
milli_celsius: i32The temperature in milli-degrees Celsius, exact in integer arithmetic.
celsius: f32The temperature in degrees Celsius.
milli_fahrenheit: i32The temperature in milli-degrees Fahrenheit.
fahrenheit: f32The temperature in degrees Fahrenheit.
milli_percent: u32The relative humidity in milli-percent.
relative_humidity: f32The relative humidity as a percentage.
Trait Implementations§
Source§impl Clone for PamojaSht3xMeasurement
impl Clone for PamojaSht3xMeasurement
Source§fn clone(&self) -> PamojaSht3xMeasurement
fn clone(&self) -> PamojaSht3xMeasurement
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 PamojaSht3xMeasurement
Source§impl Debug for PamojaSht3xMeasurement
impl Debug for PamojaSht3xMeasurement
Source§impl From<Measurement> for PamojaSht3xMeasurement
impl From<Measurement> for PamojaSht3xMeasurement
Source§impl PartialEq for PamojaSht3xMeasurement
impl PartialEq for PamojaSht3xMeasurement
Source§fn eq(&self, other: &PamojaSht3xMeasurement) -> bool
fn eq(&self, other: &PamojaSht3xMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSht3xMeasurement
Auto Trait Implementations§
impl Freeze for PamojaSht3xMeasurement
impl RefUnwindSafe for PamojaSht3xMeasurement
impl Send for PamojaSht3xMeasurement
impl Sync for PamojaSht3xMeasurement
impl Unpin for PamojaSht3xMeasurement
impl UnsafeUnpin for PamojaSht3xMeasurement
impl UnwindSafe for PamojaSht3xMeasurement
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