Struct shtcx::RawMeasurement
source · pub struct RawMeasurement {
pub temperature: u16,
pub humidity: u16,
}
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 for RawMeasurement
impl PartialEq 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 ==
.impl Copy for RawMeasurement
impl Eq for RawMeasurement
impl StructuralPartialEq for RawMeasurement
Auto Trait Implementations§
impl Freeze for RawMeasurement
impl RefUnwindSafe for RawMeasurement
impl Send for RawMeasurement
impl Sync for RawMeasurement
impl Unpin for RawMeasurement
impl UnwindSafe for RawMeasurement
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