Struct map_model::MapConfig [−][src]
pub struct MapConfig { pub driving_side: DrivingSide, pub bikes_can_use_bus_lanes: bool, pub inferred_sidewalks: bool, pub street_parking_spot_length: Distance, }
Fields
driving_side: DrivingSide
If true, driving happens on the right side of the road (USA). If false, on the left (Australia).
bikes_can_use_bus_lanes: bool
inferred_sidewalks: bool
If true, roads without explicitly tagged sidewalks may have sidewalks or shoulders. If false, no sidewalks will be inferred if not tagged in OSM, and separate sidewalks will be included.
street_parking_spot_length: Distance
Street parking is divided into spots of this length. 8 meters is a reasonable default, but people in some regions might be more accustomed to squeezing into smaller spaces. This value can be smaller than the hardcoded maximum car length; cars may render on top of each other, but otherwise the simulation doesn’t care.
Trait Implementations
impl<'de> Deserialize<'de> for MapConfig
[src]
impl<'de> Deserialize<'de> for MapConfig
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for MapConfig
impl Send for MapConfig
impl Sync for MapConfig
impl Unpin for MapConfig
impl UnwindSafe for MapConfig
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,