[][src]Enum map_model::traversable::Traversable

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

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), String>
[src]

pub fn slice(
    &self,
    start: Distance,
    end: Distance,
    map: &Map
) -> Result<(PolyLine, Distance), String>
[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

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