Struct shtcx::RawMeasurement
source · Expand description
A combined raw temperature / humidity measurement.
The raw values are of type u16. They require a conversion formula for conversion to a temperature / humidity value (see datasheet).
Fields§
§temperature: u16
The measured temperature (raw value).
humidity: u16
The measured humidity (raw value).
Trait Implementations§
source§impl Clone for RawMeasurement
impl Clone for RawMeasurement
source§fn clone(&self) -> RawMeasurement
fn clone(&self) -> RawMeasurement
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 RawMeasurement
impl Debug for RawMeasurement
source§impl From<RawMeasurement> for Measurement
impl From<RawMeasurement> for Measurement
source§fn from(other: RawMeasurement) -> Self
fn from(other: RawMeasurement) -> Self
Converts to this type from the input type.
source§impl PartialEq<RawMeasurement> for RawMeasurement
impl PartialEq<RawMeasurement> for RawMeasurement
source§fn eq(&self, other: &RawMeasurement) -> bool
fn eq(&self, other: &RawMeasurement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.