pub struct Road {
pub id: OriginalRoad,
pub src_i: NodeID,
pub dst_i: NodeID,
pub trimmed_center_pts: PolyLine,
pub half_width: Distance,
pub osm_tags: Tags,
}
Fields
id: OriginalRoad
src_i: NodeID
dst_i: NodeID
trimmed_center_pts: PolyLine
half_width: Distance
Implementations
sourceimpl Road
impl Road
pub fn new(map: &RawMap, id: OriginalRoad) -> 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 · sourcefn borrow_mut(&mut self) -> &mut T
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