pub struct ResolvedRouteSegment {
pub start: ResolvedPoint,
pub end: ResolvedPoint,
pub name: Option<String>,
pub altitude: Option<Altitude>,
pub speed: Option<Speed>,
}Expand description
A resolved route segment consisting of start and end points. Optionally, altitude and speed constraints can be included, propagated from modifiers.
Fields§
§start: ResolvedPoint§end: ResolvedPoint§name: Option<String>§altitude: Option<Altitude>§speed: Option<Speed>Implementations§
Source§impl ResolvedRouteSegment
impl ResolvedRouteSegment
Sourcepub fn from_db(segment: &RouteSegment, db: &AirwayDatabase) -> Self
pub fn from_db(segment: &RouteSegment, db: &AirwayDatabase) -> Self
Resolve a route segment from the database.
Trait Implementations§
Source§impl Clone for ResolvedRouteSegment
impl Clone for ResolvedRouteSegment
Source§fn clone(&self) -> ResolvedRouteSegment
fn clone(&self) -> ResolvedRouteSegment
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 ResolvedRouteSegment
impl Debug for ResolvedRouteSegment
Auto Trait Implementations§
impl Freeze for ResolvedRouteSegment
impl RefUnwindSafe for ResolvedRouteSegment
impl Send for ResolvedRouteSegment
impl Sync for ResolvedRouteSegment
impl Unpin for ResolvedRouteSegment
impl UnsafeUnpin for ResolvedRouteSegment
impl UnwindSafe for ResolvedRouteSegment
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