pub struct Pressure { /* private fields */ }Implementations§
Source§impl Pressure
impl Pressure
pub fn new(value: f32, unit: Unit, absolute: bool) -> Self
pub fn value(&self) -> f32
pub fn unit(&self) -> Unit
pub fn is_absolute(&self) -> bool
pub fn convert_unit(&mut self, new_unit: Unit)
pub fn pressure_ratio(p1: &Pressure, p2: &Pressure) -> Result<f32, EngCalcError>
pub fn add_pressure(self, other: &Pressure) -> Self
pub fn subtract_pressure(self, other: &Pressure) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pressure
impl RefUnwindSafe for Pressure
impl Send for Pressure
impl Sync for Pressure
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more