Struct map_model::TurnID [−][src]
pub struct TurnID { pub parent: IntersectionID, pub src: LaneID, pub dst: LaneID, }
Turns are uniquely identified by their (src, dst) lanes and their parent intersection. Intersection is needed to distinguish crosswalks that exist at two ends of a sidewalk.
Fields
parent: IntersectionID
src: LaneID
src and dst must both belong to parent. No guarantees that src is incoming and dst is outgoing for turns between sidewalks.
dst: LaneID
Implementations
impl TurnID
[src]
impl TurnID
[src]pub fn to_movement(self, map: &Map) -> MovementID
[src]
Trait Implementations
impl<'de> Deserialize<'de> for TurnID
[src]
impl<'de> Deserialize<'de> for TurnID
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<TurnID> for TurnID
[src]
impl PartialOrd<TurnID> for TurnID
[src]impl Copy for TurnID
[src]
impl Eq for TurnID
[src]
impl StructuralEq for TurnID
[src]
impl StructuralPartialEq for TurnID
[src]
Auto Trait Implementations
impl RefUnwindSafe for TurnID
impl Send for TurnID
impl Sync for TurnID
impl Unpin for TurnID
impl UnwindSafe for TurnID
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,