#[non_exhaustive]pub struct PlanWaypoint {
pub identifier: String,
pub kind: WaypointType,
pub position: GeoPoint,
pub country_code: Option<String>,
}Expand description
One ordered waypoint of an imported plan: its identifier, type, and
position (carried by the .fpl itself, so no snapshot is needed to
build geometry).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: StringIdentifier from the waypoint table.
kind: WaypointTypeGarmin waypoint type.
position: GeoPointWGS84 position.
country_code: Option<String>ICAO country code when the exporter included one.
Trait Implementations§
Source§impl Clone for PlanWaypoint
impl Clone for PlanWaypoint
Source§fn clone(&self) -> PlanWaypoint
fn clone(&self) -> PlanWaypoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlanWaypoint
impl Debug for PlanWaypoint
Source§impl PartialEq for PlanWaypoint
impl PartialEq for PlanWaypoint
Source§fn eq(&self, other: &PlanWaypoint) -> bool
fn eq(&self, other: &PlanWaypoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanWaypoint
Auto Trait Implementations§
impl Freeze for PlanWaypoint
impl RefUnwindSafe for PlanWaypoint
impl Send for PlanWaypoint
impl Sync for PlanWaypoint
impl Unpin for PlanWaypoint
impl UnsafeUnpin for PlanWaypoint
impl UnwindSafe for PlanWaypoint
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