pub struct Waypoint {
pub latitude: f64,
pub longitude: f64,
pub elevation: Option<f64>,
pub name: String,
pub description: Option<String>,
pub comment: Option<String>,
pub symbol: Option<String>,
pub wpt_type: Option<String>,
pub time: Option<i64>,
pub stop_duration: Option<u32>,
}Expand description
A <wpt> element parsed from a GPX file.
Fields§
§latitude: f64§longitude: f64§elevation: Option<f64>§name: String§description: Option<String>§comment: Option<String>§symbol: Option<String>§wpt_type: Option<String>Race-specific type: "Start", "TimeBarrier", "LifeBase", "Arrival", or None.
time: Option<i64>Unix epoch (seconds), parsed from <time> using ISO 8601.
stop_duration: Option<u32>Planned stop duration in seconds, from <stopDuration>. LifeBase-only.
Implementations§
Source§impl Waypoint
impl Waypoint
Sourcepub fn is_section_boundary(&self) -> bool
pub fn is_section_boundary(&self) -> bool
Any typed waypoint (non-null wpt_type) is a section boundary.
Sourcepub fn is_stage_boundary(&self) -> bool
pub fn is_stage_boundary(&self) -> bool
Stage boundaries are Start, LifeBase, and Arrival (not TimeBarrier).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Waypoint
impl RefUnwindSafe for Waypoint
impl Send for Waypoint
impl Sync for Waypoint
impl Unpin for Waypoint
impl UnsafeUnpin for Waypoint
impl UnwindSafe for Waypoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more