pub struct AirTemperature(/* private fields */);Expand description
Air temperature stored in Celsius.
Implementations§
Source§impl AirTemperature
impl AirTemperature
Sourcepub fn new(celsius: f64) -> Result<AirTemperature, TemperatureValueError>
pub fn new(celsius: f64) -> Result<AirTemperature, TemperatureValueError>
Creates an air temperature from a finite Celsius value.
§Errors
Returns TemperatureValueError::NonFiniteCelsius when the value is not finite.
Trait Implementations§
Source§impl Clone for AirTemperature
impl Clone for AirTemperature
Source§fn clone(&self) -> AirTemperature
fn clone(&self) -> AirTemperature
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 AirTemperature
impl Debug for AirTemperature
Source§impl PartialEq for AirTemperature
impl PartialEq for AirTemperature
Source§impl PartialOrd for AirTemperature
impl PartialOrd for AirTemperature
impl Copy for AirTemperature
impl StructuralPartialEq for AirTemperature
Auto Trait Implementations§
impl Freeze for AirTemperature
impl RefUnwindSafe for AirTemperature
impl Send for AirTemperature
impl Sync for AirTemperature
impl Unpin for AirTemperature
impl UnsafeUnpin for AirTemperature
impl UnwindSafe for AirTemperature
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