pub struct Gas { /* private fields */ }Implementations§
Source§impl Gas
impl Gas
Sourcepub fn new(o2_pp: Pressure, he_pp: Pressure) -> Self
pub fn new(o2_pp: Pressure, he_pp: Pressure) -> Self
init new gas with partial pressures (eg. 0.21, 0. for air)
pub fn id(&self) -> String
Sourcepub fn partial_pressures(
&self,
depth: Depth,
surface_pressure: i32,
) -> PartialPressures
pub fn partial_pressures( &self, depth: Depth, surface_pressure: i32, ) -> PartialPressures
gas partial pressures
Sourcepub fn inspired_partial_pressures(
&self,
depth: Depth,
surface_pressure: i32,
) -> PartialPressures
pub fn inspired_partial_pressures( &self, depth: Depth, surface_pressure: i32, ) -> PartialPressures
gas partial pressures in alveoli taking into account alveolar water vapor pressure
pub fn gas_pressures_compound(&self, gas_pressure: f64) -> PartialPressures
Sourcepub fn max_operating_depth(&self, pp_o2_limit: Pressure) -> Depth
pub fn max_operating_depth(&self, pp_o2_limit: Pressure) -> Depth
MOD
Sourcepub fn equivalent_narcotic_depth(&self, depth: Depth) -> Depth
pub fn equivalent_narcotic_depth(&self, depth: Depth) -> Depth
END
pub fn air() -> Self
Trait Implementations§
impl Copy for Gas
impl StructuralPartialEq for Gas
Auto Trait Implementations§
impl Freeze for Gas
impl RefUnwindSafe for Gas
impl Send for Gas
impl Sync for Gas
impl Unpin for Gas
impl UnwindSafe for Gas
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