Struct raw_map::ExtraRoadData
source · pub struct ExtraRoadData {
pub percent_incline: f64,
pub crosswalk_forward: bool,
pub crosswalk_backward: bool,
pub barrier_nodes: Vec<Pt2D>,
pub crossing_nodes: Vec<(Pt2D, CrossingType)>,
}
Expand description
Extra data associated with one Road
Fields§
§percent_incline: f64
§crosswalk_forward: bool
Is there a tagged crosswalk near each end of the road?
crosswalk_backward: bool
§barrier_nodes: Vec<Pt2D>
Barrier nodes along this road’s original center line.
crossing_nodes: Vec<(Pt2D, CrossingType)>
Crossing nodes along this road’s original center line.
Implementations§
source§impl ExtraRoadData
impl ExtraRoadData
Trait Implementations§
source§impl Clone for ExtraRoadData
impl Clone for ExtraRoadData
source§fn clone(&self) -> ExtraRoadData
fn clone(&self) -> ExtraRoadData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtraRoadData
impl Debug for ExtraRoadData
source§impl<'de> Deserialize<'de> for ExtraRoadData
impl<'de> Deserialize<'de> for ExtraRoadData
source§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 Freeze for ExtraRoadData
impl RefUnwindSafe for ExtraRoadData
impl Send for ExtraRoadData
impl Sync for ExtraRoadData
impl Unpin for ExtraRoadData
impl UnwindSafe for ExtraRoadData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more