Enum map_model::Traversable [−][src]
Either a lane or a turn, where most movement happens.
Variants
Lane(LaneID)
Turn(TurnID)
Implementations
impl Traversable
[src]
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(crate) fn max_speed_along_road(
dr: DirectedRoadID,
max_speed_on_flat_ground: Option<Speed>,
constraints: PathConstraints,
map: &Map
) -> (Speed, f64)
[src]
dr: DirectedRoadID,
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. This should be used for pathfinding and simulation. Returns (speed, percent incline).
pub(crate) fn max_speed_along_movement(
mvmnt: MovementID,
max_speed_on_flat_ground: Option<Speed>,
_: PathConstraints,
map: &Map
) -> Speed
[src]
mvmnt: MovementID,
max_speed_on_flat_ground: Option<Speed>,
_: PathConstraints,
map: &Map
) -> Speed
The single definitive place to determine how fast somebody could go along a single movement. This should be used for pathfinding and simulation. Ignores elevation.
Trait Implementations
impl Clone for Traversable
[src]
impl Clone for Traversable
[src]fn clone(&self) -> Traversable
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for Traversable
[src]
impl<'de> Deserialize<'de> for Traversable
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Hash for Traversable
[src]
impl Hash for Traversable
[src]impl Ord for Traversable
[src]
impl Ord for Traversable
[src]impl PartialEq<Traversable> for Traversable
[src]
impl PartialEq<Traversable> for Traversable
[src]fn eq(&self, other: &Traversable) -> bool
[src]
fn ne(&self, other: &Traversable) -> bool
[src]
impl PartialOrd<Traversable> for Traversable
[src]
impl PartialOrd<Traversable> for Traversable
[src]impl Serialize for Traversable
[src]
impl Serialize for Traversable
[src]impl Copy for Traversable
[src]
impl Eq 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> 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,