[][src]Struct diving_decompression::Dive

pub struct Dive {
    pub depth: u16,
    pub bottom_time: u16,
}

single dive object

Fields

depth: u16

depth of the dive expressed in feet of sea water

bottom_time: u16

bottom time of the dive expressed in minutes

Implementations

impl Dive[src]

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

Instantiate a new Dive object

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

Returns the no decompression limit of the Dive Object up to a depth of 190 feet of sea water No decompression limit is returned in minutes as u16 integer

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

returns the group letter of the Dive 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 deco_dive(self) -> RowDeco[src]

returns the decompression profile of the Dive object. the depth is expressed in feet of sea water the bottom_time is expressed in minutes the decompression profile is returned as a RowDeco struct

Trait Implementations

impl Clone for Dive[src]

impl Copy for Dive[src]

impl Debug for Dive[src]

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

impl Serialize for Dive[src]

Auto Trait Implementations

impl RefUnwindSafe for Dive

impl Send for Dive

impl Sync for Dive

impl Unpin for Dive

impl UnwindSafe for Dive

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.