[][src]Struct diving_decompression::DivePlan

pub struct DivePlan {
    pub depth: u16,
    pub bottom_time: u16,
    pub surface_interval_time: u16,
    pub next_dive_depth: u16,
}

single dive plan object

Fields

depth: u16

the depth of the first planned dive expressed in feet of sea water

bottom_time: u16

the bottom time of the first planned dive expressed in minutes

surface_interval_time: u16

the planned surface interval time expressed in minutes

next_dive_depth: u16

the depth of the next planned dive expressed in feet of sea water

Implementations

impl DivePlan[src]

pub fn new(
    depth: u16,
    bottom_time: u16,
    surface_interval_time: u16,
    next_dive_depth: u16
) -> Self
[src]

Instantiates a new Dive Plan object the depth and next_dive_depth are expressed in feet of sea water the bottom_time and surface_interval_time are expressed in minutes the returned object is of type DivePlan

pub fn from_dive(
    dive: Dive,
    surface_interval_time: u16,
    next_dive_depth: u16
) -> Self
[src]

Instantiates a new Dive Plan object from an existing Dive Object the next_dive_depth is expressed in feet of sea water the surface_interval_time is expressed in minutes the returned object is of type DivePlan

pub fn no_decompression_limit(self) -> u16[src]

returns the no decompression limit for the first dive of a DivePlan object No decompression limit is returned in minutes as u16 integer

pub fn group_letter(self) -> String[src]

returns the group letter of the first dive of a DivePlan object. the depth is expressed in feet of sea water the bottom_time is expressed in minutes the group letter is returned as a String

pub fn repet_letter(self) -> String[src]

Returns the repetitive group letter of the DivePlan object. the depth and next_dive_depth are expressed in feet of sea water the bottom_time and surface_interval_time are expressed in minutes the repetitive group letter is returned as a String

pub fn residual_nitrogen_time(self) -> u16[src]

Returns the residual nitrogen time of the DivePlan object. the depth and next_dive_depth are expressed in feet of sea water the bottom_time and surface_interval_time are expressed in minutes the residual nitrogen time is returned as a u16 integer

Trait Implementations

impl Clone for DivePlan[src]

impl Copy for DivePlan[src]

impl Debug for DivePlan[src]

impl<'de> Deserialize<'de> for DivePlan[src]

impl Serialize for DivePlan[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.