pub struct Gas { /* private fields */ }Expand description
A gas mix used in a dive.
Implementations§
Source§impl Gas
impl Gas
Sourcepub fn equivalent_narcotic_depth(&self, depth: usize) -> usize
pub fn equivalent_narcotic_depth(&self, depth: usize) -> usize
Returns the Equivalent Narcotic Depth (END) of the mix at a given depth.
§Arguments
depth- The depth the mix is being breathed at.
Sourcepub fn in_ppo2_range(&self, depth: usize, min: f64, max: f64) -> bool
pub fn in_ppo2_range(&self, depth: usize, min: f64, max: f64) -> bool
Helper function to check whether the mix is in an acceptable ppO2 range at a given depth.
§Arguments
depth-Depth the mix is being breathed at.min- Minimum tolerable ppO2.max- Maximum tolerable ppO2.
Sourcepub fn pp_o2(&self, depth: usize, metres_per_bar: f64) -> f64
pub fn pp_o2(&self, depth: usize, metres_per_bar: f64) -> f64
Returns the ppO2 of the mix at a given depth.
§Arguments
depth- Depth the mix is being breathed at.metres_per_bar- Depth of water required to induce 1 bar of pressure.
Trait Implementations§
impl Copy for Gas
impl Eq 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