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 length(&self, map: &Map) -> Distance[src]

pub fn dist_along(&self, dist: Distance, map: &Map) -> Result<(Pt2D, Angle)>[src]

pub fn slice(
    &self,
    start: Distance,
    end: Distance,
    map: &Map
) -> Result<(PolyLine, Distance)>
[src]

pub fn exact_slice(&self, start: Distance, end: Distance, map: &Map) -> PolyLine[src]

pub fn speed_limit(&self, map: &Map) -> Speed[src]

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

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[src]

impl Send for Traversable[src]

impl Sync for Traversable[src]

impl Unpin for Traversable[src]

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