[−][src]Struct capra::modes::open_circuit::OpenCircuit
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]
deco_algorithm: T,
deco_gases: &'a [(Gas, Option<usize>)],
bottom_segments: &'a [(DiveSegment, Gas)],
parameters: DiveParameters
) -> Self
Returns a open circuit dive plan with the given parameters.
Arguments
deco_algorithm
- Decompression algorithm to usedeco_gases
- Deco gases to use, and an optional corresponding Maximum Operating Depthbottom_segments
- Bottom segments of the dive and corresponding gas usedascent_rate
- Ascent rate to use throughout the divedescent_rate
- Descent rate to use throughout the divewater_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]
fn clone(&self) -> OpenCircuit<'a, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn plan(&self) -> DiveResult<T>
[src]
fn plan_backwards(&self, _tanks: &[Tank]) -> DiveResult<T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for OpenCircuit<'a, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'a, T> Send for OpenCircuit<'a, T> where
T: Send,
[src]
T: Send,
impl<'a, T> Sync for OpenCircuit<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T> Unpin for OpenCircuit<'a, T> where
T: Unpin,
[src]
T: Unpin,
impl<'a, T> UnwindSafe for OpenCircuit<'a, T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,