pub struct BuhlmannModel { /* private fields */ }Implementations§
Source§impl BuhlmannModel
impl BuhlmannModel
Sourcepub fn supersaturation(&self) -> Supersaturation
pub fn supersaturation(&self) -> Supersaturation
set of current gradient factors (GF now, GF surface)
pub fn tissues(&self) -> Vec<Compartment>
pub fn update_config( &mut self, new_config: BuhlmannConfig, ) -> Result<(), ConfigValidationErr>
Trait Implementations§
Source§impl Clone for BuhlmannModel
impl Clone for BuhlmannModel
Source§fn clone(&self) -> BuhlmannModel
fn clone(&self) -> BuhlmannModel
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 BuhlmannModel
impl Debug for BuhlmannModel
Source§impl DecoModel for BuhlmannModel
impl DecoModel for BuhlmannModel
Source§fn new(config: BuhlmannConfig) -> Self
fn new(config: BuhlmannConfig) -> Self
initialize new Buhlmann (ZH-L16C) model with gradient factors
Source§fn record(&mut self, depth: Depth, time: Time, gas: &Gas)
fn record(&mut self, depth: Depth, time: Time, gas: &Gas)
record data: depth (meters), time (seconds), gas
Source§fn record_travel(&mut self, target_depth: Depth, time: Time, gas: &Gas)
fn record_travel(&mut self, target_depth: Depth, time: Time, gas: &Gas)
model travel between depths in 1s intervals
type ConfigType = BuhlmannConfig
fn default() -> Self
Source§fn config(&self) -> BuhlmannConfig
fn config(&self) -> BuhlmannConfig
get model config
Source§fn dive_state(&self) -> DiveState
fn dive_state(&self) -> DiveState
get model dive state
Source§fn record_travel_with_rate(&mut self, target_depth: Depth, rate: f64, gas: &Gas)
fn record_travel_with_rate(&mut self, target_depth: Depth, rate: f64, gas: &Gas)
register linear ascent / descent record given rate
Source§fn deco(&self, gas_mixes: Vec<Gas>) -> Result<DecoRuntime, DecoCalculationError>
fn deco(&self, gas_mixes: Vec<Gas>) -> Result<DecoRuntime, DecoCalculationError>
deco stages, TTL
Auto Trait Implementations§
impl Freeze for BuhlmannModel
impl RefUnwindSafe for BuhlmannModel
impl Send for BuhlmannModel
impl Sync for BuhlmannModel
impl Unpin for BuhlmannModel
impl UnwindSafe for BuhlmannModel
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