pub struct RelativeHumidity { /* private fields */ }
Expand description
Represents a relative humidity reading from the humidity sensor
Implementations§
Source§impl RelativeHumidity
impl RelativeHumidity
pub fn from_percent(pc: f64) -> RelativeHumidity
pub fn as_percent(&self) -> f64
Trait Implementations§
Source§impl Clone for RelativeHumidity
impl Clone for RelativeHumidity
Source§fn clone(&self) -> RelativeHumidity
fn clone(&self) -> RelativeHumidity
Returns a duplicate 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 RelativeHumidity
impl Debug for RelativeHumidity
Source§impl Display for RelativeHumidity
impl Display for RelativeHumidity
impl Copy for RelativeHumidity
Auto Trait Implementations§
impl Freeze for RelativeHumidity
impl RefUnwindSafe for RelativeHumidity
impl Send for RelativeHumidity
impl Sync for RelativeHumidity
impl Unpin for RelativeHumidity
impl UnwindSafe for RelativeHumidity
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