pub struct Compartment {
pub no: u8,
pub min_tolerable_amb_pressure: Pressure,
pub he_ip: Pressure,
pub n2_ip: Pressure,
pub total_ip: Pressure,
pub m_value_raw: Pressure,
pub m_value_calc: Pressure,
pub params: (f64, f64, f64, f64, f64, f64),
/* private fields */
}Fields§
§no: u8§min_tolerable_amb_pressure: Pressure§he_ip: Pressure§n2_ip: Pressure§total_ip: Pressure§m_value_raw: Pressure§m_value_calc: Pressure§params: (f64, f64, f64, f64, f64, f64)Implementations§
Source§impl Compartment
impl Compartment
pub fn new( no: u8, params: (f64, f64, f64, f64, f64, f64), model_config: BuhlmannConfig, ) -> Self
pub fn recalculate( &mut self, record: &RecordData<'_>, max_gf: u8, surface_pressure: i32, )
pub fn ceiling(&self) -> Depth
pub fn supersaturation( &self, surface_pressure: i32, depth: Depth, ) -> Supersaturation
pub fn weighted_zhl_params( &self, he_pp: Pressure, n2_pp: Pressure, ) -> (f64, f64, f64)
Trait Implementations§
Source§impl Clone for Compartment
impl Clone for Compartment
Source§fn clone(&self) -> Compartment
fn clone(&self) -> Compartment
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 Compartment
impl Debug for Compartment
Source§impl PartialEq for Compartment
impl PartialEq for Compartment
impl Copy for Compartment
impl StructuralPartialEq for Compartment
Auto Trait Implementations§
impl Freeze for Compartment
impl RefUnwindSafe for Compartment
impl Send for Compartment
impl Sync for Compartment
impl Unpin for Compartment
impl UnwindSafe for Compartment
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