Struct oldnav_lib::navdata::airport::Airport
[−]
[src]
pub struct Airport { pub waypoint: Waypoint, }
An airport on earth.
Fields
waypoint: Waypoint
This airport's waypoint.
Methods
impl Airport
[src]
fn new<S: Into<String>>(code: S, name: S, pos: SphericalCoordinate, country: Option<Rc<Country>>) -> Airport
Constructor for Airport
.
Trait Implementations
impl WaypointInterface for Airport
[src]
fn code(&self) -> &str
Get the ICAO code for this waypoint.
fn name(&self) -> &str
Get the name of this waypoint.
fn pos(&self) -> &SphericalCoordinate
Get the position of this waypoint.