[−][src]Struct map_model::Lane
Fields
id: LaneID
parent: RoadID
lane_type: LaneType
lane_center_pts: PolyLine
width: Distance
src_i: IntersectionID
dst_i: IntersectionID
bus_stops: BTreeSet<BusStopID>
driving_blackhole: bool
biking_blackhole: bool
Implementations
impl Lane
[src]
pub fn first_pt(&self) -> Pt2D
[src]
pub fn last_pt(&self) -> Pt2D
[src]
pub fn first_line(&self) -> Line
[src]
pub fn last_line(&self) -> Line
[src]
pub fn endpoint(&self, i: IntersectionID) -> Pt2D
[src]
pub fn end_line(&self, i: IntersectionID) -> Line
[src]
pub fn dist_along_of_point(&self, pt: Pt2D) -> Option<Distance>
[src]
pub fn length(&self) -> Distance
[src]
pub fn intersections(&self) -> Vec<IntersectionID>
[src]
pub fn number_parking_spots(&self) -> usize
[src]
pub fn is_driving(&self) -> bool
[src]
pub fn is_biking(&self) -> bool
[src]
pub fn is_bus(&self) -> bool
[src]
pub fn is_walkable(&self) -> bool
[src]
pub fn is_sidewalk(&self) -> bool
[src]
pub fn is_shoulder(&self) -> bool
[src]
pub fn is_parking(&self) -> bool
[src]
pub fn is_light_rail(&self) -> bool
[src]
pub fn get_directed_parent(&self, map: &Map) -> DirectedRoadID
[src]
pub fn get_turn_restrictions<'a>(
&'a self,
road: &'a Road
) -> Option<impl Iterator<Item = TurnType> + 'a>
[src]
&'a self,
road: &'a Road
) -> Option<impl Iterator<Item = TurnType> + 'a>
pub fn get_max_cost(&self, constraints: PathConstraints, map: &Map) -> usize
[src]
Trait Implementations
impl Debug for Lane
[src]
impl<'de> Deserialize<'de> for Lane
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Lane
[src]
Auto Trait Implementations
impl RefUnwindSafe for Lane
impl Send for Lane
impl Sync for Lane
impl Unpin for Lane
impl UnwindSafe for Lane
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,