Fields
lt: LaneType
dir: Direction
width: Distance
Implementations
sourceimpl LaneSpec
impl LaneSpec
sourcepub fn typical_lane_widths(
lt: LaneType,
tags: &Tags
) -> Vec<(Distance, &'static str)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn typical_lane_widths(
lt: LaneType,
tags: &Tags
) -> Vec<(Distance, &'static str)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
For a given lane type, returns some likely widths. This may depend on the type of the road, so the OSM tags are also passed in. The first value returned will be used as a default.
sourcepub(crate) fn assemble_ltr(
fwd_side: Vec<LaneSpec>,
back_side: Vec<LaneSpec>,
driving_side: DrivingSide
) -> Vec<LaneSpec>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub(crate) fn assemble_ltr(
fwd_side: Vec<LaneSpec>,
back_side: Vec<LaneSpec>,
driving_side: DrivingSide
) -> Vec<LaneSpec>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Put a list of forward and backward lanes into left-to-right order, depending on the driving side. Both input lists should be ordered from the center of the road going outwards.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for LaneSpec
impl<'de> Deserialize<'de> for LaneSpec
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for LaneSpec
Auto Trait Implementations
impl RefUnwindSafe for LaneSpec
impl Send for LaneSpec
impl Sync for LaneSpec
impl Unpin for LaneSpec
impl UnwindSafe for LaneSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more