pub struct Finding {
pub severity: Severity,
pub class: String,
pub along_track_nm: f64,
pub until_nm: f64,
pub position: Position,
pub reason: String,
}Expand description
One thing found along a leg.
Fields§
§severity: SeverityHow much it matters.
class: StringS-57 object class, or M_COVR for a gap in coverage.
along_track_nm: f64How far along the leg it was first met, in nautical miles.
until_nm: f64How far along the leg it was last met.
Equal to Self::along_track_nm for a hazard met at a single
point. A two-mile stretch of shoal water is reported as one
finding with two ends, not as multiple findings at each
sampled interval.
position: PositionThe position on the leg where the finding starts, for a caller to know where to look – not the hazard’s own centre, which for a large area may be a position the vessel never approaches.
reason: StringWhy it was reported, in words fit to put on a screen.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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