pub struct AtmosphericPressure(/* private fields */);Expand description
Atmospheric pressure stored in hPa or mbar.
Implementations§
Source§impl AtmosphericPressure
impl AtmosphericPressure
Sourcepub fn new(hectopascals: f64) -> Result<Self, PressureValueError>
pub fn new(hectopascals: f64) -> Result<Self, PressureValueError>
Creates atmospheric pressure from a finite non-negative hPa value.
§Errors
Returns PressureValueError when the pressure is invalid.
Sourcepub fn hectopascals(&self) -> f64
pub fn hectopascals(&self) -> f64
Returns the stored pressure in hPa.
Sourcepub fn unit_label(&self) -> PressureUnitLabel
pub fn unit_label(&self) -> PressureUnitLabel
Returns the unit label for the stored convention.
Trait Implementations§
Source§impl Clone for AtmosphericPressure
impl Clone for AtmosphericPressure
Source§fn clone(&self) -> AtmosphericPressure
fn clone(&self) -> AtmosphericPressure
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 AtmosphericPressure
impl Debug for AtmosphericPressure
Source§impl PartialEq for AtmosphericPressure
impl PartialEq for AtmosphericPressure
Source§impl PartialOrd for AtmosphericPressure
impl PartialOrd for AtmosphericPressure
impl Copy for AtmosphericPressure
impl StructuralPartialEq for AtmosphericPressure
Auto Trait Implementations§
impl Freeze for AtmosphericPressure
impl RefUnwindSafe for AtmosphericPressure
impl Send for AtmosphericPressure
impl Sync for AtmosphericPressure
impl Unpin for AtmosphericPressure
impl UnsafeUnpin for AtmosphericPressure
impl UnwindSafe for AtmosphericPressure
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