pub struct HectoPascal(pub f64);
Expand description
Pressure in hPa units.
Tuple Fields§
§0: f64
Implementations§
Source§impl HectoPascal
impl HectoPascal
Sourcepub fn max(self, other: HectoPascal) -> Self
pub fn max(self, other: HectoPascal) -> Self
Find the maximum for two values
Sourcepub fn min(self, other: HectoPascal) -> Self
pub fn min(self, other: HectoPascal) -> Self
Find the minimum for two values
Trait Implementations§
Source§impl<T> Add<T> for HectoPascal
impl<T> Add<T> for HectoPascal
Source§impl<T> AddAssign<T> for HectoPascal
impl<T> AddAssign<T> for HectoPascal
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl Clone for HectoPascal
impl Clone for HectoPascal
Source§fn clone(&self) -> HectoPascal
fn clone(&self) -> HectoPascal
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 HectoPascal
impl Debug for HectoPascal
Source§impl<T> Div<T> for HectoPascal
impl<T> Div<T> for HectoPascal
Source§impl Div<f64> for HectoPascal
impl Div<f64> for HectoPascal
Source§impl DivAssign<f64> for HectoPascal
impl DivAssign<f64> for HectoPascal
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl From<HectoPascal> for Millibar
impl From<HectoPascal> for Millibar
Source§fn from(v: HectoPascal) -> Self
fn from(v: HectoPascal) -> Self
Converts to this type from the input type.
Source§impl From<HectoPascal> for Pascal
impl From<HectoPascal> for Pascal
Source§fn from(v: HectoPascal) -> Self
fn from(v: HectoPascal) -> Self
Converts to this type from the input type.
Source§impl From<Millibar> for HectoPascal
impl From<Millibar> for HectoPascal
Source§impl From<Pascal> for HectoPascal
impl From<Pascal> for HectoPascal
Source§impl Mul<f64> for HectoPascal
impl Mul<f64> for HectoPascal
Source§impl MulAssign<f64> for HectoPascal
impl MulAssign<f64> for HectoPascal
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl Neg for HectoPascal
impl Neg for HectoPascal
Source§impl<T> PartialEq<T> for HectoPascal
impl<T> PartialEq<T> for HectoPascal
Source§impl<T> PartialOrd<T> for HectoPascal
impl<T> PartialOrd<T> for HectoPascal
Source§impl Quantity for HectoPascal
impl Quantity for HectoPascal
Source§fn unwrap(self) -> f64
fn unwrap(self) -> f64
Unwrap the value from the new type and check for validity, panic if contents are invalid.
Source§fn into_option(self) -> Option<f64>
fn into_option(self) -> Option<f64>
Convert into an option that is
None
if the content is invalid.Source§impl<T> Sub<T> for HectoPascal
impl<T> Sub<T> for HectoPascal
Source§impl<T> SubAssign<T> for HectoPascal
impl<T> SubAssign<T> for HectoPascal
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreimpl Copy for HectoPascal
impl Pressure for HectoPascal
Auto Trait Implementations§
impl Freeze for HectoPascal
impl RefUnwindSafe for HectoPascal
impl Send for HectoPascal
impl Sync for HectoPascal
impl Unpin for HectoPascal
impl UnwindSafe for HectoPascal
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