Struct map_model::objects::road::DirectedRoadID[][src]

pub struct DirectedRoadID {
    pub id: RoadID,
    pub dir: Direction,
}

Fields

id: RoadIDdir: Direction

Implementations

impl DirectedRoadID[src]

pub fn src_i(self, map: &Map) -> IntersectionID[src]

pub fn dst_i(self, map: &Map) -> IntersectionID[src]

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

Strict for bikes. If there are bike lanes, not allowed to use other lanes.

Trait Implementations

impl Clone for DirectedRoadID[src]

impl Copy for DirectedRoadID[src]

impl Debug for DirectedRoadID[src]

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

impl Display for DirectedRoadID[src]

impl Eq for DirectedRoadID[src]

impl Hash for DirectedRoadID[src]

impl Ord for DirectedRoadID[src]

impl PartialEq<DirectedRoadID> for DirectedRoadID[src]

impl PartialOrd<DirectedRoadID> for DirectedRoadID[src]

impl Serialize for DirectedRoadID[src]

impl StructuralEq for DirectedRoadID[src]

impl StructuralPartialEq for DirectedRoadID[src]

Auto Trait Implementations

impl RefUnwindSafe for DirectedRoadID[src]

impl Send for DirectedRoadID[src]

impl Sync for DirectedRoadID[src]

impl Unpin for DirectedRoadID[src]

impl UnwindSafe for DirectedRoadID[src]

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> CallHasher for T where
    T: Hash

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>,