pub struct ResolvedRouteSegment {
pub start: ResolvedPoint,
pub end: ResolvedPoint,
pub name: Option<String>,
pub altitude: Option<Altitude>,
pub speed: Option<Speed>,
}Expand description
A single segment of a resolved route between two waypoints.
Each segment connects two navigation points and may include altitude and speed constraints (e.g., “climb to FL350”, “maintain 280 knots”).
§Fields
start: Origin point of this segment (airport, navaid, designated point, or coordinates)end: Destination point of this segmentname: Optional identifier for the segment (e.g., “Q400”, route number)altitude: Altitude constraint if specified in the procedure or route definitionspeed: Speed constraint if specified in the procedure or route definition
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