pub struct Pressure(/* private fields */);Expand description
Implementations§
Source§impl Pressure
impl Pressure
Sourcepub fn in_unit(self, unit: PressureUnit) -> f64
pub fn in_unit(self, unit: PressureUnit) -> f64
Get value in the specified PressureUnit.
Sourcepub fn display_as(self, unit: PressureUnit) -> DisplayWithUnit
pub fn display_as(self, unit: PressureUnit) -> DisplayWithUnit
Return a display wrapper that formats this pressure in the given unit.
Trait Implementations§
Source§impl AddAssign for Pressure
impl AddAssign for Pressure
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl DivAssign<f64> for Pressure
impl DivAssign<f64> for Pressure
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Pressure
impl MulAssign<f64> for Pressure
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl PartialOrd for Pressure
impl PartialOrd for Pressure
Source§impl SubAssign for Pressure
impl SubAssign for Pressure
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Pressure
impl StructuralPartialEq for Pressure
Auto Trait Implementations§
impl Freeze for Pressure
impl RefUnwindSafe for Pressure
impl Send for Pressure
impl Sync for Pressure
impl Unpin for Pressure
impl UnsafeUnpin for Pressure
impl UnwindSafe for Pressure
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