[][src]Struct capra::modes::open_circuit::OpenCircuit

pub struct OpenCircuit<'a, T: DecoAlgorithm> { /* fields omitted */ }

An open circuit dive plan.

Implementations

impl<'a, T: DecoAlgorithm> OpenCircuit<'a, T>[src]

pub fn new(
    deco_algorithm: T,
    deco_gases: &'a [(Gas, Option<usize>)],
    bottom_segments: &'a [(DiveSegment, Gas)],
    parameters: DiveParameters
) -> Self
[src]

Returns a open circuit dive plan with the given parameters.

Arguments

  • deco_algorithm - Decompression algorithm to use
  • deco_gases - Deco gases to use, and an optional corresponding Maximum Operating Depth
  • bottom_segments - Bottom segments of the dive and corresponding gas used
  • ascent_rate - Ascent rate to use throughout the dive
  • descent_rate - Descent rate to use throughout the dive
  • water_density - Density of water during the dive (measured in kg m^-3)
  • sac_bottom - Surface Air Consumption on bottom segments (measured in bar min^-1)
  • sac_deco - Surface Air Consumption during decompression (measured in bar min^-1)

Trait Implementations

impl<'a, T: Clone + DecoAlgorithm> Clone for OpenCircuit<'a, T>[src]

impl<'a, T: Copy + DecoAlgorithm> Copy for OpenCircuit<'a, T>[src]

impl<'a, T: Debug + DecoAlgorithm> Debug for OpenCircuit<'a, T>[src]

impl<'a, T: DecoAlgorithm> DivePlan<T> for OpenCircuit<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for OpenCircuit<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for OpenCircuit<'a, T> where
    T: Send
[src]

impl<'a, T> Sync for OpenCircuit<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for OpenCircuit<'a, T> where
    T: Unpin
[src]

impl<'a, T> UnwindSafe for OpenCircuit<'a, T> where
    T: UnwindSafe
[src]

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> 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.