Enum map_model::CommonEndpoint [−][src]
pub enum CommonEndpoint {
One(IntersectionID),
Both,
None,
}
Variants
One(IntersectionID)
Tuple Fields
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
pub fn new(
obj1: (IntersectionID, IntersectionID),
obj2: (IntersectionID, IntersectionID)
) -> CommonEndpoint
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.