[−][src]Struct diving_decompression::DivePlan
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]
depth: u16,
bottom_time: u16,
surface_interval_time: u16,
next_dive_depth: u16
) -> Self
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]
dive: Dive,
surface_interval_time: u16,
next_dive_depth: u16
) -> Self
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DivePlan
[src]
Auto Trait Implementations
impl RefUnwindSafe for DivePlan
impl Send for DivePlan
impl Sync for DivePlan
impl Unpin for DivePlan
impl UnwindSafe for DivePlan
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
fn to_owned(&self) -> T
[src]
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.
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>,