[][src]Struct map_model::objects::intersection::Intersection

pub struct Intersection {
    pub id: IntersectionID,
    pub polygon: Polygon,
    pub turns: BTreeSet<TurnID>,
    pub elevation: Distance,
    pub intersection_type: IntersectionType,
    pub orig_id: NodeID,
    pub incoming_lanes: Vec<LaneID>,
    pub outgoing_lanes: Vec<LaneID>,
    pub roads: BTreeSet<RoadID>,
}

Fields

id: IntersectionIDpolygon: Polygonturns: BTreeSet<TurnID>elevation: Distanceintersection_type: IntersectionTypeorig_id: NodeIDincoming_lanes: Vec<LaneID>outgoing_lanes: Vec<LaneID>roads: BTreeSet<RoadID>

Implementations

impl Intersection[src]

pub fn is_border(&self) -> bool[src]

pub fn is_incoming_border(&self) -> bool[src]

pub fn is_outgoing_border(&self) -> bool[src]

pub fn is_closed(&self) -> bool[src]

pub fn is_stop_sign(&self) -> bool[src]

pub fn is_traffic_signal(&self) -> bool[src]

pub fn is_light_rail(&self, map: &Map) -> bool[src]

pub fn is_private(&self, map: &Map) -> bool[src]

pub fn get_incoming_lanes(
    &self,
    map: &Map,
    constraints: PathConstraints
) -> Vec<LaneID>
[src]

pub fn get_outgoing_lanes(
    &self,
    map: &Map,
    constraints: PathConstraints
) -> Vec<LaneID>
[src]

pub fn get_zorder(&self, map: &Map) -> isize[src]

pub fn get_rank(&self, map: &Map) -> RoadRank[src]

pub(crate) fn get_roads_sorted_by_incoming_angle(
    &self,
    all_roads: &Vec<Road>
) -> Vec<RoadID>
[src]

pub fn some_outgoing_road(&self, map: &Map) -> Option<DirectedRoadID>[src]

pub fn some_incoming_road(&self, map: &Map) -> Option<DirectedRoadID>[src]

pub fn name(&self, lang: Option<&String>, map: &Map) -> String[src]

Trait Implementations

impl Debug for Intersection[src]

impl<'de> Deserialize<'de> for Intersection[src]

impl Serialize for Intersection[src]

Auto Trait Implementations

impl RefUnwindSafe for Intersection

impl Send for Intersection

impl Sync for Intersection

impl Unpin for Intersection

impl UnwindSafe for Intersection

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,