pub struct FindOptions {
pub safety_contour_m: f64,
pub port_xtd_nm: f64,
pub starboard_xtd_nm: f64,
pub margin_nm: Option<f64>,
pub cell_nm: Option<f64>,
pub avoid_restricted_areas: bool,
}Expand description
What a route is being planned for, and how far around the direct line to search.
Fields§
§safety_contour_m: f64The vessel’s safety contour, in metres – the same setting
enc_store::Vessel takes, and the same one the chart is drawn with.
port_xtd_nm: f64How far the vessel may stray to port of any leg the route ends up with, in nautical miles.
starboard_xtd_nm: f64The same to starboard.
margin_nm: Option<f64>How far beyond the direct line between from and to the search
is allowed to reach, in nautical miles. Some is tried exactly
once, at the given value, and not escalated further. None
auto-scales the margin from the direct distance and escalates it
a few times before giving up if the search finds nothing (see
margin_schedule).
cell_nm: Option<f64>Lattice spacing, in nautical miles. None auto-scales it from the
direct distance, so a long passage does not blow up the lattice
size and a short one is not searched more coarsely than it needs.
avoid_restricted_areas: boolWhether a restricted area (RESARE – a marine reserve, a firing
range, or another area a mariner must stay out of, not merely be
cautioned about) blocks the route outright rather than only being
crossed and reported. Off by default, the same posture check_leg
itself takes: most restricted areas restrict anchoring or require
a licence rather than prohibiting transit, and only the mariner
planning the route knows which applies.
Trait Implementations§
Source§impl Clone for FindOptions
impl Clone for FindOptions
Source§fn clone(&self) -> FindOptions
fn clone(&self) -> FindOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FindOptions
Source§impl Debug for FindOptions
impl Debug for FindOptions
Source§impl PartialEq for FindOptions
impl PartialEq for FindOptions
Source§fn eq(&self, other: &FindOptions) -> bool
fn eq(&self, other: &FindOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FindOptions
Auto Trait Implementations§
impl Freeze for FindOptions
impl RefUnwindSafe for FindOptions
impl Send for FindOptions
impl Sync for FindOptions
impl Unpin for FindOptions
impl UnsafeUnpin for FindOptions
impl UnwindSafe for FindOptions
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
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>
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>
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