Struct map_model::pathfind::uber_turns::IntersectionCluster
source · pub struct IntersectionCluster {
pub members: BTreeSet<IntersectionID>,
pub uber_turns: Vec<UberTurn>,
}
Expand description
This only applies to VehiclePathfinder; walking through these intersections is nothing special. And in fact, even lanes only for buses/bikes are ignored.
Fields§
§members: BTreeSet<IntersectionID>
§uber_turns: Vec<UberTurn>
Implementations§
source§impl IntersectionCluster
impl IntersectionCluster
pub fn find_all(map: &Map) -> Vec<IntersectionCluster>
sourcepub fn new(
members: BTreeSet<IntersectionID>,
map: &Map
) -> (IntersectionCluster, IntersectionCluster)
pub fn new( members: BTreeSet<IntersectionID>, map: &Map ) -> (IntersectionCluster, IntersectionCluster)
(legal, illegal)
sourcepub fn autodetect(
from: IntersectionID,
map: &Map
) -> Option<BTreeSet<IntersectionID>>
pub fn autodetect( from: IntersectionID, map: &Map ) -> Option<BTreeSet<IntersectionID>>
Find all other traffic signals “close” to one. Ignore stop sign intersections in between.
source§impl IntersectionCluster
impl IntersectionCluster
sourcepub fn into_v2(self, map: &Map) -> Vec<UberTurnV2>
pub fn into_v2(self, map: &Map) -> Vec<UberTurnV2>
Group lane-based uber-turns into road-based UberTurnV2s.
Auto Trait Implementations§
impl RefUnwindSafe for IntersectionCluster
impl Send for IntersectionCluster
impl Sync for IntersectionCluster
impl Unpin for IntersectionCluster
impl UnwindSafe for IntersectionCluster
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