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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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