pub struct RouteReport {
pub uuid: String,
pub name: Option<String>,
pub distance_nm: f64,
pub legs: Vec<LegReport>,
}Expand description
What a whole route came back with.
Fields§
§uuid: StringThe route’s identity, so a report can be matched to what it is about.
name: Option<String>Its name at the time of checking.
distance_nm: f64Total distance, each leg measured the way it is drawn.
legs: Vec<LegReport>One per leg, in the order they are sailed.
Implementations§
Source§impl RouteReport
impl RouteReport
Sourcepub fn worst(&self) -> Option<Severity>
pub fn worst(&self) -> Option<Severity>
The worst thing found anywhere on the route, if anything was.
Sourcepub fn is_clear(&self) -> bool
pub fn is_clear(&self) -> bool
Whether the route can be sailed as planned: nothing unsafe and nothing the check could not answer.
Sourcepub fn findings_along_route(&self) -> Vec<(f64, usize, &Finding)>
pub fn findings_along_route(&self) -> Vec<(f64, usize, &Finding)>
Every finding with its distance from the start of the route rather than from the start of its leg, worst first at equal distances.
Trait Implementations§
Source§impl Clone for RouteReport
impl Clone for RouteReport
Source§fn clone(&self) -> RouteReport
fn clone(&self) -> RouteReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RouteReport
impl Debug for RouteReport
Source§impl PartialEq for RouteReport
impl PartialEq for RouteReport
Source§fn eq(&self, other: &RouteReport) -> bool
fn eq(&self, other: &RouteReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RouteReport
Auto Trait Implementations§
impl Freeze for RouteReport
impl RefUnwindSafe for RouteReport
impl Send for RouteReport
impl Sync for RouteReport
impl Unpin for RouteReport
impl UnsafeUnpin for RouteReport
impl UnwindSafe for RouteReport
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