Enum map_model::pathfind::v1::PathStep [−][src]
Variants
Lane(LaneID)
Original direction
ContraflowLane(LaneID)
Sidewalks only!
Turn(TurnID)
Implementations
impl PathStep
[src]
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]
&self,
map: &Map,
start: Distance,
dist_ahead: Option<Distance>
) -> Result<PolyLine>
pub fn max_speed_along(
&self,
max_speed_on_flat_ground: Option<Speed>,
constraints: PathConstraints,
map: &Map
) -> Speed
[src]
&self,
max_speed_on_flat_ground: Option<Speed>,
constraints: PathConstraints,
map: &Map
) -> Speed
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_and_incline_along(
&self,
max_speed_on_flat_ground: Option<Speed>,
constraints: PathConstraints,
map: &Map
) -> (Speed, f64)
[src]
&self,
max_speed_on_flat_ground: Option<Speed>,
constraints: PathConstraints,
map: &Map
) -> (Speed, f64)
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. Returns (speed, percent incline).
Trait Implementations
impl<'de> Deserialize<'de> for PathStep
[src]
impl<'de> Deserialize<'de> for PathStep
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<PathStep> for PathStep
[src]
impl PartialOrd<PathStep> 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> CallHasher for T where
T: Hash,
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,