Struct map_model::EditRoad [−][src]
pub struct EditRoad { pub lanes_ltr: Vec<LaneSpec>, pub speed_limit: Speed, pub access_restrictions: AccessRestrictions, }
Fields
lanes_ltr: Vec<LaneSpec>
speed_limit: Speed
access_restrictions: AccessRestrictions
Implementations
Transforms a string describing lane types and directions, like “spddps” and “vv^^^^^”, into an EditRoad. Useful for unit tests.
This is meant for table-driven unit tests. Call this on the transformed / output lanes. If
the lanes don’t match, ok
will be set to false and appropriate errors will be printed.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for EditRoad
impl UnwindSafe for EditRoad
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