[][src]Trait capra::plan::DivePlan

pub trait DivePlan<T: DecoAlgorithm> {
    fn plan(&self) -> DiveResult<T>;
fn plan_backwards(&self, tanks: &[Tank]) -> DiveResult<T>; }

Trait for dive planning structs.

Required methods

fn plan(&self) -> DiveResult<T>[src]

Run the dive plan, returning a DiveResult that contains the results.

fn plan_backwards(&self, tanks: &[Tank]) -> DiveResult<T>[src]

Run the dive plan "backwards". Given the amount of gas in the tanks, how much of the dive plan can actually be done?

Loading content...

Implementors

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

Loading content...