Enum oldnav_lib::navdata::database::WaypointQueryResult
[−]
[src]
pub enum WaypointQueryResult<T> {
Found(T),
TooFar(T),
NotFound,
}The result of a query for waypoint or waypoints in Database
Variants
Found(T)T was found
TooFar(T)T was found but it was too far.
NotFoundT was not found at all.
Methods
impl<T> WaypointQueryResult<T>[src]
fn is_found(self) -> bool
Returns true if the result is Found.
fn is_none(self) -> bool
Returns true if the result is None.
fn is_too_far(self) -> bool
Returns true if the result is TooFar.
fn found(self) -> Option<T>
Converts from WaypointQueryResult<T> toOption
fn too_far(self) -> Option<T>
Converts from WaypointQueryResult<T> toOption