pub enum SnapAccess {
Incoming,
Outgoing,
Both,
}Expand description
How an itinerary may traverse a snapped location.
The engine knows each point’s role: an origin only needs to leave (Outgoing),
a destination only needs to arrive (Incoming), and every intermediate stop
needs both (Both). Snapping prefers a node that satisfies the requirement
and keeps the plain nearest node when none does.
Variants§
Trait Implementations§
Source§impl Clone for SnapAccess
impl Clone for SnapAccess
impl Copy for SnapAccess
Source§impl Debug for SnapAccess
impl Debug for SnapAccess
impl Eq for SnapAccess
Source§impl PartialEq for SnapAccess
impl PartialEq for SnapAccess
impl StructuralPartialEq for SnapAccess
Auto Trait Implementations§
impl Forget for SnapAccess
impl Freeze for SnapAccess
impl Move for SnapAccess
impl RefUnwindSafe for SnapAccess
impl Send for SnapAccess
impl Sync for SnapAccess
impl Unpin for SnapAccess
impl UnsafeUnpin for SnapAccess
impl UnwindSafe for SnapAccess
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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