[][src]Struct capra::deco::zhl16::ZHL16

pub struct ZHL16 { /* fields omitted */ }

A ZHL-16 decompression model of a diver.

Notes

For now, each ZHL16 struct should only be used for one dive. This is because calculating decompression stops with Gradient Factors requires some side effects to be stored inside the struct.

Implementations

impl ZHL16[src]

pub fn new(
    tissue: Tissue,
    n2_a: [f64; 16],
    n2_b: [f64; 16],
    n2_hl: [f64; 16],
    he_a: [f64; 16],
    he_b: [f64; 16],
    he_hl: [f64; 16],
    gf_low: usize,
    gf_high: usize
) -> Self
[src]

Returns a ZHL16 model with the given parameters. Use this if you have to supply all the tissue loading constants by yourself. Otherwise, use ZHL16::new_by_variant instead.

Arguments

  • tissue - Tissue model of the diver before the dive
  • n2_a - Nitrogen A-values to use
  • n2_b - Nitrogen B-values to use
  • n2_hl - Nitrogen half-lives to use
  • he_a - Helium A-values to use
  • he_b - Helium B-values to use
  • he_hl - Helium half-lives to use
  • gf_low - Gradient Factor low value to use when calculating deco stops
  • gf_high - Gradient Factor high value to use when calculating deco stops

pub fn new_by_variant(
    tissue: Tissue,
    gfl: usize,
    gfh: usize,
    variant: Variant
) -> Self
[src]

Returns a ZHL16 model with the tissue loading constants of a defined variant.

Arguments

  • tissue - Tissue model of the diver before the dive
  • gf_low - Gradient Factor low value to use when calculating deco stops
  • gf_high - Gradient Factor high value to use when calculating deco stops
  • variant - Variant to use

pub fn tissue(&self) -> Tissue[src]

Returns the tissue of the deco model.

Trait Implementations

impl Clone for ZHL16[src]

impl Copy for ZHL16[src]

impl Debug for ZHL16[src]

impl DecoAlgorithm for ZHL16[src]

Auto Trait Implementations

impl RefUnwindSafe for ZHL16

impl Send for ZHL16

impl Sync for ZHL16

impl Unpin for ZHL16

impl UnwindSafe for ZHL16

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.