Struct map_model::raw::RawRoad [−][src]
pub struct RawRoad { pub center_points: Vec<Pt2D>, pub osm_tags: Tags, pub turn_restrictions: Vec<(RestrictionType, OriginalRoad)>, pub complicated_turn_restrictions: Vec<(OriginalRoad, OriginalRoad)>, pub percent_incline: f64, }
Fields
center_points: Vec<Pt2D>
This is effectively a PolyLine, except there’s a case where we need to plumb forward cul-de-sac roads for roundabout handling. No transformation of these points whatsoever has happened.
turn_restrictions: Vec<(RestrictionType, OriginalRoad)>
complicated_turn_restrictions: Vec<(OriginalRoad, OriginalRoad)>
(via, to). For turn restrictions where ‘via’ is an entire road. Only BanTurns.
percent_incline: f64
Implementations
Returns the corrected center and total width
Trait Implementations
fn 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
Auto Trait Implementations
impl RefUnwindSafe for RawRoad
impl UnwindSafe for RawRoad
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self