Struct map_model::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
sourceimpl IntersectionCluster
impl IntersectionCluster
pub fn find_all(map: &Map) -> Vec<IntersectionCluster>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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.
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
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