pub struct Road {
pub id: OriginalRoad,
pub src_i: NodeID,
pub dst_i: NodeID,
pub trimmed_center_pts: PolyLine,
pub half_width: Distance,
pub lane_specs_ltr: Vec<LaneSpec>,
pub osm_tags: Tags,
}
Fields
id: OriginalRoad
src_i: NodeID
dst_i: NodeID
trimmed_center_pts: PolyLine
half_width: Distance
lane_specs_ltr: Vec<LaneSpec>
Implementations
sourceimpl Road
impl Road
pub fn new(map: &RawMap, id: OriginalRoad) -> Result<Road>
pub(crate) fn to_input_road(&self) -> InputRoad
Auto Trait Implementations
impl RefUnwindSafe for Road
impl Send for Road
impl Sync for Road
impl Unpin for Road
impl UnwindSafe for Road
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