pub struct TemperatureAndRelativeHumidity<T: Temperature> {
pub temperature: T,
pub relative_humidity: RelativeHumidity,
}Expand description
The combination of the temperature and the relative humidity.
Fields§
§temperature: TThe temperature (either in °C or °F).
relative_humidity: RelativeHumidityThe relative humidity (in %).
Implementations§
Source§impl<T: Temperature> TemperatureAndRelativeHumidity<T>
impl<T: Temperature> TemperatureAndRelativeHumidity<T>
Sourcepub fn absolute_humidity(&self) -> AbsoluteHumidity
pub fn absolute_humidity(&self) -> AbsoluteHumidity
Computes the absolute humidity value (in g/m³). The absolute humidity is defined by the mass of water vapor per humid air volume.
Sourcepub fn dew_point(&self) -> T
pub fn dew_point(&self) -> T
Computes the dew point temperature. The dew point temperature is defined as the temperature to which the quantity of air must be cooled down such that, at constant pressure, condensation occurs.
Sourcepub fn heat_index(&self) -> HeatIndex<T>
pub fn heat_index(&self) -> HeatIndex<T>
Computes the heat index.
See HeatIndex.
Trait Implementations§
Source§impl<T: Clone + Temperature> Clone for TemperatureAndRelativeHumidity<T>
impl<T: Clone + Temperature> Clone for TemperatureAndRelativeHumidity<T>
Source§fn clone(&self) -> TemperatureAndRelativeHumidity<T>
fn clone(&self) -> TemperatureAndRelativeHumidity<T>
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<T: Copy + Temperature> Copy for TemperatureAndRelativeHumidity<T>
Source§impl<T: Debug + Temperature> Debug for TemperatureAndRelativeHumidity<T>
impl<T: Debug + Temperature> Debug for TemperatureAndRelativeHumidity<T>
Source§impl<T: Default + Temperature> Default for TemperatureAndRelativeHumidity<T>
impl<T: Default + Temperature> Default for TemperatureAndRelativeHumidity<T>
Source§fn default() -> TemperatureAndRelativeHumidity<T>
fn default() -> TemperatureAndRelativeHumidity<T>
Returns the “default value” for a type. Read more
Source§impl From<TemperatureAndRelativeHumidity<Celsius>> for TemperatureAndRelativeHumidity<Fahrenheit>
impl From<TemperatureAndRelativeHumidity<Celsius>> for TemperatureAndRelativeHumidity<Fahrenheit>
Source§fn from(value: TemperatureAndRelativeHumidity<Celsius>) -> Self
fn from(value: TemperatureAndRelativeHumidity<Celsius>) -> Self
Converts to this type from the input type.
Source§impl From<TemperatureAndRelativeHumidity<Fahrenheit>> for TemperatureAndRelativeHumidity<Celsius>
impl From<TemperatureAndRelativeHumidity<Fahrenheit>> for TemperatureAndRelativeHumidity<Celsius>
Source§fn from(value: TemperatureAndRelativeHumidity<Fahrenheit>) -> Self
fn from(value: TemperatureAndRelativeHumidity<Fahrenheit>) -> Self
Converts to this type from the input type.
Source§impl<T: Temperature + PartialEq> PartialEq for TemperatureAndRelativeHumidity<T>
impl<T: Temperature + PartialEq> PartialEq for TemperatureAndRelativeHumidity<T>
Auto Trait Implementations§
impl<T> Freeze for TemperatureAndRelativeHumidity<T>where
T: Freeze,
impl<T> RefUnwindSafe for TemperatureAndRelativeHumidity<T>where
T: RefUnwindSafe,
impl<T> Send for TemperatureAndRelativeHumidity<T>where
T: Send,
impl<T> Sync for TemperatureAndRelativeHumidity<T>where
T: Sync,
impl<T> Unpin for TemperatureAndRelativeHumidity<T>where
T: Unpin,
impl<T> UnsafeUnpin for TemperatureAndRelativeHumidity<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TemperatureAndRelativeHumidity<T>where
T: UnwindSafe,
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