#[non_exhaustive]pub enum RouteToken {
Ident(String),
Airway(String),
Dct,
LatLon(GeoPoint),
Procedure {
name: String,
transition: Option<String>,
},
}Expand description
One token of a route string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ident(String)
A point identifier: airport, navaid, or fix.
Airway(String)
An airway designator, e.g. "V25", "J94", "Q120".
Dct
The literal DCT separator.
LatLon(GeoPoint)
An inline lat/lon waypoint.
Procedure
A SID/STAR procedure token, e.g. "TRUKN2" or "BLUES2.IIU".
Trait Implementations§
Source§impl Clone for RouteToken
impl Clone for RouteToken
Source§fn clone(&self) -> RouteToken
fn clone(&self) -> RouteToken
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 RouteToken
impl Debug for RouteToken
Source§impl PartialEq for RouteToken
impl PartialEq for RouteToken
Source§fn eq(&self, other: &RouteToken) -> bool
fn eq(&self, other: &RouteToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RouteToken
Auto Trait Implementations§
impl Freeze for RouteToken
impl RefUnwindSafe for RouteToken
impl Send for RouteToken
impl Sync for RouteToken
impl Unpin for RouteToken
impl UnsafeUnpin for RouteToken
impl UnwindSafe for RouteToken
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