pub struct DivePlan {
pub depth: u16,
pub bottom_time: u16,
pub surface_interval_time: u16,
pub next_dive_depth: u16,
}Expand description
single dive plan object
Fields§
§depth: u16the depth of the first planned dive expressed in feet of sea water
bottom_time: u16the bottom time of the first planned dive expressed in minutes
surface_interval_time: u16the planned surface interval time expressed in minutes
next_dive_depth: u16the depth of the next planned dive expressed in feet of sea water
Implementations§
Source§impl DivePlan
impl DivePlan
Sourcepub fn new(
depth: u16,
bottom_time: u16,
surface_interval_time: u16,
next_dive_depth: u16,
) -> Self
pub fn new( 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
Sourcepub fn from_dive(
dive: Dive,
surface_interval_time: u16,
next_dive_depth: u16,
) -> Self
pub fn from_dive( 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
Sourcepub fn no_decompression_limit(self) -> u16
pub fn no_decompression_limit(self) -> u16
returns the no decompression limit for the first dive of a DivePlan object No decompression limit is returned in minutes as u16 integer
Sourcepub fn group_letter(self) -> String
pub fn group_letter(self) -> String
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
Sourcepub fn repet_letter(self) -> String
pub fn repet_letter(self) -> String
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
Sourcepub fn residual_nitrogen_time(self) -> u16
pub fn residual_nitrogen_time(self) -> u16
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