pub enum PointReference {
DesignatedPoint(String),
Navaid(String),
AirportHeliport(String),
None,
}Expand description
A reference to a navigation point (designated point, navaid, or airport).
Used in route segments, procedure legs, and airspace definitions to reference specific navigation points. The enum variants represent different point types that can appear in aviation procedures and routes.
§Variants
DesignatedPoint(String): Published waypoint/fix identifier (e.g., “APTIN”)Navaid(String): Navigation aid identifier (e.g., “SEA” for VOR)AirportHeliport(String): Airport or heliport identifier (e.g., “KSEA”)None: Point not resolved or undefined
§Example
ⓘ
let point = PointReference::DesignatedPoint("APTIN".to_string());
match point {
PointReference::DesignatedPoint(name) => println!("Waypoint: {}", name),
_ => println!("Other point type"),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PointReference
impl Clone for PointReference
Source§fn clone(&self) -> PointReference
fn clone(&self) -> PointReference
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 PointReference
impl Debug for PointReference
Source§impl Default for PointReference
impl Default for PointReference
Source§fn default() -> PointReference
fn default() -> PointReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PointReference
impl<'de> Deserialize<'de> for PointReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PointReference
impl RefUnwindSafe for PointReference
impl Send for PointReference
impl Sync for PointReference
impl Unpin for PointReference
impl UnsafeUnpin for PointReference
impl UnwindSafe for PointReference
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