Trait oldnav_lib::navdata::waypoint::WaypointInterface [] [src]

pub trait WaypointInterface {
    fn code(&self) -> &str;
    fn name(&self) -> &str;
    fn pos(&self) -> &SphericalCoordinate;
}

A common interface for accessing objects which can provide waypoint information.

Required Methods

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.

Implementors