pub struct RelativeHumidity(/* private fields */);Expand description
Relative humidity stored as a percentage.
Implementations§
Source§impl RelativeHumidity
impl RelativeHumidity
Sourcepub fn new(percent: f64) -> Result<Self, HumidityValueError>
pub fn new(percent: f64) -> Result<Self, HumidityValueError>
Creates relative humidity from a finite percentage in 0.0..=100.0.
§Errors
Returns HumidityValueError when the value is invalid.
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 (const: unstable) · 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 PartialEq for RelativeHumidity
impl PartialEq for RelativeHumidity
Source§fn eq(&self, other: &RelativeHumidity) -> bool
fn eq(&self, other: &RelativeHumidity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RelativeHumidity
impl PartialOrd for RelativeHumidity
impl Copy for RelativeHumidity
impl StructuralPartialEq 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 UnsafeUnpin 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