pub enum ResolvedPoint {
AirportHeliport(AirportHeliport),
Navaid(Navaid),
DesignatedPoint(DesignatedPoint),
Coordinates {
latitude: f64,
longitude: f64,
},
None,
}Expand description
A resolved waypoint on a flight route, resolved to a specific geographic type.
Represents the result of looking up a point reference in the EUROCONTROL database.
A point can be an airport, navaid, designated point, or a latitude/longitude coordinate.
The None variant indicates the point could not be resolved.
§Variants
AirportHeliport: Arrival/departure airport or aerodromeNavaid: Radio navigation aid (VOR, NDB, etc.)DesignatedPoint: Published waypoint or fixCoordinates: Raw latitude/longitude pair (typically for procedural segments)None: Point reference could not be resolved to a known location
Variants§
Implementations§
Source§impl ResolvedPoint
impl ResolvedPoint
Sourcepub fn from_db(point: &PointReference, db: &AirwayDatabase) -> Self
pub fn from_db(point: &PointReference, db: &AirwayDatabase) -> Self
Resolve a point from the database.
Sourcepub fn lookup(name: &str, db: &AirwayDatabase) -> Vec<Self>
pub fn lookup(name: &str, db: &AirwayDatabase) -> Vec<Self>
Resolve a point by its name from the database.
Trait Implementations§
Source§impl Clone for ResolvedPoint
impl Clone for ResolvedPoint
Source§fn clone(&self) -> ResolvedPoint
fn clone(&self) -> ResolvedPoint
Returns a duplicate of the value. Read more
1.0.0 · 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 ResolvedPoint
impl Debug for ResolvedPoint
Source§impl Display for ResolvedPoint
impl Display for ResolvedPoint
Source§impl From<&ResolvedPoint> for Coor2D
impl From<&ResolvedPoint> for Coor2D
Source§fn from(val: &ResolvedPoint) -> Self
fn from(val: &ResolvedPoint) -> Self
Converts to this type from the input type.
Source§impl Hash for ResolvedPoint
impl Hash for ResolvedPoint
Source§impl PartialEq for ResolvedPoint
impl PartialEq for ResolvedPoint
Source§impl Serialize for ResolvedPoint
impl Serialize for ResolvedPoint
impl Eq for ResolvedPoint
Auto Trait Implementations§
impl Freeze for ResolvedPoint
impl RefUnwindSafe for ResolvedPoint
impl Send for ResolvedPoint
impl Sync for ResolvedPoint
impl Unpin for ResolvedPoint
impl UnsafeUnpin for ResolvedPoint
impl UnwindSafe for ResolvedPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CoordinateMetadata for Twhere
T: ?Sized,
impl<T> CoordinateMetadata for Twhere
T: ?Sized,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.