Struct map_model::objects::road::DirectedRoadID [−][src]
Fields
id: RoadID
dir: Direction
Implementations
impl DirectedRoadID
[src]
impl DirectedRoadID
[src]pub fn src_i(self, map: &Map) -> IntersectionID
[src]
pub fn dst_i(self, map: &Map) -> IntersectionID
[src]
pub fn lanes(self, constraints: PathConstraints, map: &Map) -> Vec<LaneID>
[src]
Strict for bikes. If there are bike lanes, not allowed to use other lanes.
pub fn must_get_sidewalk(self, map: &Map) -> LaneID
[src]
Get the only sidewalk or shoulder on this side of the road, and panic otherwise.
pub fn has_lanes(self, lane_type: LaneType, map: &Map) -> bool
[src]
Does this directed road have any lanes of a certain type?
Trait Implementations
impl Clone for DirectedRoadID
[src]
impl Clone for DirectedRoadID
[src]fn clone(&self) -> DirectedRoadID
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for DirectedRoadID
[src]
impl<'de> Deserialize<'de> for DirectedRoadID
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Hash for DirectedRoadID
[src]
impl Hash for DirectedRoadID
[src]impl Ord for DirectedRoadID
[src]
impl Ord for DirectedRoadID
[src]impl PartialEq<DirectedRoadID> for DirectedRoadID
[src]
impl PartialEq<DirectedRoadID> for DirectedRoadID
[src]fn eq(&self, other: &DirectedRoadID) -> bool
[src]
fn ne(&self, other: &DirectedRoadID) -> bool
[src]
impl PartialOrd<DirectedRoadID> for DirectedRoadID
[src]
impl PartialOrd<DirectedRoadID> for DirectedRoadID
[src]fn partial_cmp(&self, other: &DirectedRoadID) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for DirectedRoadID
[src]
impl Serialize for DirectedRoadID
[src]impl Copy for DirectedRoadID
[src]
impl Eq for DirectedRoadID
[src]
impl StructuralEq for DirectedRoadID
[src]
impl StructuralPartialEq for DirectedRoadID
[src]
Auto Trait Implementations
impl RefUnwindSafe for DirectedRoadID
impl Send for DirectedRoadID
impl Sync for DirectedRoadID
impl Unpin for DirectedRoadID
impl UnwindSafe for DirectedRoadID
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,