Enum map_model::pathfind::v1::PathStep[][src]

pub enum PathStep {
    Lane(LaneID),
    ContraflowLane(LaneID),
    Turn(TurnID),
}

Variants

Lane(LaneID)

Original direction

ContraflowLane(LaneID)

Sidewalks only!

Turn(TurnID)

Implementations

impl PathStep[src]

pub fn as_traversable(&self) -> Traversable[src]

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

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

fn exact_slice(
    &self,
    map: &Map,
    start: Distance,
    dist_ahead: Option<Distance>
) -> Result<PolyLine>
[src]

Trait Implementations

impl Clone for PathStep[src]

impl Debug for PathStep[src]

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

impl Hash for PathStep[src]

impl Ord for PathStep[src]

impl PartialEq<PathStep> for PathStep[src]

impl PartialOrd<PathStep> for PathStep[src]

impl Serialize for PathStep[src]

impl Copy for PathStep[src]

impl Eq for PathStep[src]

impl StructuralEq for PathStep[src]

impl StructuralPartialEq for PathStep[src]

Auto Trait Implementations

impl RefUnwindSafe for PathStep

impl Send for PathStep

impl Sync for PathStep

impl Unpin for PathStep

impl UnwindSafe for PathStep

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]