[][src]Struct capra::result::DiveResult

pub struct DiveResult<T: DecoAlgorithm> { /* fields omitted */ }

A collection of results generated by a dive plan.

Implementations

impl<T: DecoAlgorithm> DiveResult<T>[src]

pub fn new(
    deco_algorithm: T,
    total_segments: Vec<(DiveSegment, Gas)>,
    gas_used: HashMap<Gas, usize>
) -> Self
[src]

Returns a new DiveResult with the given parameters.

Arguments

  • deco_algorithm - Decompression model after the dive plan
  • total_segments - List of all segments that were performed
  • gas_used - Summation of total quantity of gases used

pub fn total_segments(&self) -> &Vec<(DiveSegment, Gas)>[src]

Returns the list of all segments that were performed

pub fn gas_used(&self) -> &HashMap<Gas, usize>[src]

Returns the summation of total quantity of gases used

pub fn deco_algorithm(&self) -> &T[src]

Returns the list of all segments that were performed

Trait Implementations

impl<T: Clone + DecoAlgorithm> Clone for DiveResult<T>[src]

impl<T: Debug + DecoAlgorithm> Debug for DiveResult<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for DiveResult<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for DiveResult<T> where
    T: Send
[src]

impl<T> Sync for DiveResult<T> where
    T: Sync
[src]

impl<T> Unpin for DiveResult<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for DiveResult<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.