Struct map_model::MovementID[][src]

pub struct MovementID {
    pub from: DirectedRoadID,
    pub to: DirectedRoadID,
    pub parent: IntersectionID,
    pub crosswalk: bool,
}

A movement is like a turn, but with less detail -- it identifies a movement from one directed road to another. One road usually has 4 crosswalks, each a singleton Movement. We need all of the information here to keep each crosswalk separate.

Fields

from: DirectedRoadIDto: DirectedRoadIDparent: IntersectionIDcrosswalk: bool

Trait Implementations

impl Clone for MovementID[src]

impl Copy for MovementID[src]

impl Debug for MovementID[src]

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

impl Eq for MovementID[src]

impl Hash for MovementID[src]

impl Ord for MovementID[src]

impl PartialEq<MovementID> for MovementID[src]

impl PartialOrd<MovementID> for MovementID[src]

impl Serialize for MovementID[src]

impl StructuralEq for MovementID[src]

impl StructuralPartialEq for MovementID[src]

Auto Trait Implementations

impl RefUnwindSafe for MovementID[src]

impl Send for MovementID[src]

impl Sync for MovementID[src]

impl Unpin for MovementID[src]

impl UnwindSafe for MovementID[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, 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>,