Enum map_model::CommonEndpoint
source · [−]pub enum CommonEndpoint {
One(IntersectionID),
Both,
None,
}
Variants
One(IntersectionID)
Two lanes/roads share one endpoint
Both
Two lanes/roads share both endpoints, because they both belong to the same road, or there are two different roads connecting the same pair of intersections
None
Two lanes/roads don’t have any common endpoints
Implementations
sourceimpl CommonEndpoint
impl CommonEndpoint
pub fn new(
obj1: (IntersectionID, IntersectionID),
obj2: (IntersectionID, IntersectionID)
) -> CommonEndpoint
Trait Implementations
sourceimpl PartialEq<CommonEndpoint> for CommonEndpoint
impl PartialEq<CommonEndpoint> for CommonEndpoint
sourcefn eq(&self, other: &CommonEndpoint) -> bool
fn eq(&self, other: &CommonEndpoint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommonEndpoint) -> bool
fn ne(&self, other: &CommonEndpoint) -> bool
This method tests for !=
.
impl StructuralPartialEq for CommonEndpoint
Auto Trait Implementations
impl RefUnwindSafe for CommonEndpoint
impl Send for CommonEndpoint
impl Sync for CommonEndpoint
impl Unpin for CommonEndpoint
impl UnwindSafe for CommonEndpoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more