pub struct TemperatureAndBarometricPressure<U: TemperatureUnit> {
pub barometric_pressure: BarometricPressure,
pub temperature: Temperature<U>,
}
Expand description
The combination of the temperature and the barometric pressure.
Fields§
§barometric_pressure: BarometricPressure
The barometric pressure (in hPa).
temperature: Temperature<U>
The temperature (either in °C or °F).
Implementations§
Source§impl TemperatureAndBarometricPressure<Fahrenheit>
impl TemperatureAndBarometricPressure<Fahrenheit>
Sourcepub fn new(
temperature: f32,
barometric_pressure: f32,
) -> TemperatureAndBarometricPressure<Fahrenheit>
pub fn new( temperature: f32, barometric_pressure: f32, ) -> TemperatureAndBarometricPressure<Fahrenheit>
Create a combination of Fahrenheit temperature and barometric pressure.
Trait Implementations§
Source§impl<U: Clone + TemperatureUnit> Clone for TemperatureAndBarometricPressure<U>
impl<U: Clone + TemperatureUnit> Clone for TemperatureAndBarometricPressure<U>
Source§fn clone(&self) -> TemperatureAndBarometricPressure<U>
fn clone(&self) -> TemperatureAndBarometricPressure<U>
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<U: Debug + TemperatureUnit> Debug for TemperatureAndBarometricPressure<U>
impl<U: Debug + TemperatureUnit> Debug for TemperatureAndBarometricPressure<U>
Source§impl<U: Default + TemperatureUnit> Default for TemperatureAndBarometricPressure<U>
impl<U: Default + TemperatureUnit> Default for TemperatureAndBarometricPressure<U>
Source§fn default() -> TemperatureAndBarometricPressure<U>
fn default() -> TemperatureAndBarometricPressure<U>
Returns the “default value” for a type. Read more
Source§impl From<TemperatureAndBarometricPressure<Celsius>> for TemperatureAndBarometricPressure<Fahrenheit>
impl From<TemperatureAndBarometricPressure<Celsius>> for TemperatureAndBarometricPressure<Fahrenheit>
Source§fn from(value: TemperatureAndBarometricPressure<Celsius>) -> Self
fn from(value: TemperatureAndBarometricPressure<Celsius>) -> Self
Converts to this type from the input type.
Source§impl From<TemperatureAndBarometricPressure<Fahrenheit>> for TemperatureAndBarometricPressure<Celsius>
impl From<TemperatureAndBarometricPressure<Fahrenheit>> for TemperatureAndBarometricPressure<Celsius>
Source§fn from(value: TemperatureAndBarometricPressure<Fahrenheit>) -> Self
fn from(value: TemperatureAndBarometricPressure<Fahrenheit>) -> Self
Converts to this type from the input type.
Source§impl<U: PartialEq + TemperatureUnit> PartialEq for TemperatureAndBarometricPressure<U>
impl<U: PartialEq + TemperatureUnit> PartialEq for TemperatureAndBarometricPressure<U>
Source§fn eq(&self, other: &TemperatureAndBarometricPressure<U>) -> bool
fn eq(&self, other: &TemperatureAndBarometricPressure<U>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<U: Copy + TemperatureUnit> Copy for TemperatureAndBarometricPressure<U>
impl<U: TemperatureUnit> StructuralPartialEq for TemperatureAndBarometricPressure<U>
Auto Trait Implementations§
impl<U> Freeze for TemperatureAndBarometricPressure<U>where
U: Freeze,
impl<U> RefUnwindSafe for TemperatureAndBarometricPressure<U>where
U: RefUnwindSafe,
impl<U> Send for TemperatureAndBarometricPressure<U>where
U: Send,
impl<U> Sync for TemperatureAndBarometricPressure<U>where
U: Sync,
impl<U> Unpin for TemperatureAndBarometricPressure<U>where
U: Unpin,
impl<U> UnwindSafe for TemperatureAndBarometricPressure<U>where
U: 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