Struct map_model::objects::turn::Turn [−][src]
pub struct Turn {
pub id: TurnID,
pub turn_type: TurnType,
pub geom: PolyLine,
pub other_crosswalk_ids: BTreeSet<TurnID>,
}
Expand description
A Turn leads from the end of one Lane to the start of another. (Except for pedestrians; sidewalks are bidirectional.)
Fields
id: TurnID
turn_type: TurnType
geom: PolyLine
other_crosswalk_ids: BTreeSet<TurnID>
Empty except for TurnType::Crosswalk and UnmarkedCrossing. Usually just one other ID, except for the case of 4 duplicates at a degenerate intersection.
Implementations
Penalties for (lane types, lane-changing, slow lane). The penalty may depend on the vehicle performing the turn. Lower means preferable.
Is this turn legal, according to turn lane tagging?
Is this turn legal, according to turn restrictions defined between road segments?
If this turn is a crosswalk over a single road, return that road and which end of the road is crossed.
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 Turn
impl UnwindSafe for Turn
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