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§
source§impl CommonEndpoint
impl CommonEndpoint
pub fn new( obj1: (IntersectionID, IntersectionID), obj2: (IntersectionID, IntersectionID) ) -> CommonEndpoint
Trait Implementations§
source§impl PartialEq for CommonEndpoint
impl PartialEq for CommonEndpoint
source§fn 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 ==
.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§
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