pub enum Sailing {
Rhumb,
GreatCircle,
}Expand description
How a leg is drawn between its two ends.
This crate has no dependency on the route domain, so a caller with a route supplies which sailing each leg used.
Variants§
Rhumb
Constant bearing: a straight line on a Mercator projection, the default representation for a plotted leg.
GreatCircle
The shortest path over the sphere; its bearing changes continuously. The difference from a rhumb line is significant only on legs of hundreds of miles, where checking the rhumb line instead would check the wrong water.
Trait Implementations§
impl Copy for Sailing
impl Eq for Sailing
impl StructuralPartialEq for Sailing
Auto Trait Implementations§
impl Freeze for Sailing
impl RefUnwindSafe for Sailing
impl Send for Sailing
impl Sync for Sailing
impl Unpin for Sailing
impl UnsafeUnpin for Sailing
impl UnwindSafe for Sailing
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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