Enum map_model::Traversable[][src]

pub enum Traversable {
    Lane(LaneID),
    Turn(TurnID),
}

Either a lane or a turn, where most movement happens.

Variants

Lane(LaneID)
Turn(TurnID)

Implementations

impl Traversable[src]

pub fn as_lane(&self) -> LaneID[src]

pub fn as_turn(&self) -> TurnID[src]

pub fn maybe_turn(&self) -> Option<TurnID>[src]

pub fn maybe_lane(&self) -> Option<LaneID>[src]

pub fn get_polyline(self, map: &Map) -> &PolyLine[src]

Return the center-line geometry of this lane or turn.

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

pub fn max_speed_along(
    &self,
    max_speed_on_flat_ground: Option<Speed>,
    constraints: PathConstraints,
    map: &Map
) -> Speed
[src]

The single definitive place to determine how fast somebody could go along a single road or turn. This should be used for pathfinding and simulation.

pub fn max_speed_along_road(
    dr: DirectedRoadID,
    max_speed_on_flat_ground: Option<Speed>,
    constraints: PathConstraints,
    map: &Map
) -> Speed
[src]

The single definitive place to determine how fast somebody could go along a single road. This should be used for pathfinding and simulation.

pub fn max_speed_along_movement(
    mvmnt: MovementID,
    max_speed_on_flat_ground: Option<Speed>,
    _: PathConstraints,
    map: &Map
) -> Speed
[src]

The single definitive place to determine how fast somebody could go along a single movement. This should be used for pathfinding and simulation.

Trait Implementations

impl Clone for Traversable[src]

impl Copy for Traversable[src]

impl Debug for Traversable[src]

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

impl Display for Traversable[src]

impl Eq for Traversable[src]

impl Hash for Traversable[src]

impl Ord for Traversable[src]

impl PartialEq<Traversable> for Traversable[src]

impl PartialOrd<Traversable> for Traversable[src]

impl Serialize for Traversable[src]

impl StructuralEq for Traversable[src]

impl StructuralPartialEq for Traversable[src]

Auto Trait Implementations

impl RefUnwindSafe for Traversable

impl Send for Traversable

impl Sync for Traversable

impl Unpin for Traversable

impl UnwindSafe for Traversable

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, 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>,