pub struct LegReport {
pub index: usize,
pub to_name: Option<String>,
pub starts_at_nm: f64,
pub length_nm: f64,
pub findings: Vec<Finding>,
}Expand description
What one leg of the route came back with.
Fields§
§index: usizeWhich leg, counting from zero: leg 0 runs from waypoint 0 to waypoint 1.
to_name: Option<String>The name of the waypoint the leg arrives at, when it has one.
starts_at_nm: f64Distance from the start of the route to the start of this leg.
length_nm: f64The leg’s own length.
findings: Vec<Finding>What the chart said, with distances measured along this leg.
Trait Implementations§
impl StructuralPartialEq for LegReport
Auto Trait Implementations§
impl Freeze for LegReport
impl RefUnwindSafe for LegReport
impl Send for LegReport
impl Sync for LegReport
impl Unpin for LegReport
impl UnsafeUnpin for LegReport
impl UnwindSafe for LegReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more