pub struct LaneMarking { /* private fields */ }Expand description
Describes the complete lane marking at a lane boundary.
A LaneMarking describes all properties of the road marking at a lane’s boundary. The marking can vary along the lane’s s-coordinate, so this structure represents the marking for a specific s-range.
Simple markings: For single-line markings (e.g., a solid white edge line),
the type, color, width, and weight fields are sufficient. The lines
vector can be left empty.
Complex markings: For compound markings (e.g., double lines with different
patterns like kSolidBroken), the lines vector provides detailed information
about each component line. When lines is non-empty, the individual line
definitions take precedence for geometry and per-line colors. The top-level
type, color, and width fields remain useful as summary/fallback values.
Implementations§
Source§impl LaneMarking
impl LaneMarking
Sourcepub fn get_type(&self) -> LaneMarkingType
pub fn get_type(&self) -> LaneMarkingType
Returns the type of marking.
§Returns
A LaneMarkingType representing the pattern or type of marking.
Sourcepub fn weight(&self) -> LaneMarkingWeight
pub fn weight(&self) -> LaneMarkingWeight
Returns the visual weight or thickness type of the marking.
§Returns
A LaneMarkingWeight that indicates the type of visual weight of the marking.
pub fn color(&self) -> LaneMarkingColor
Sourcepub fn lane_change(&self) -> LaneChangePermission
pub fn lane_change(&self) -> LaneChangePermission
Returns the type of lane change the marking allows.
§Returns
A LaneChangePermission that indicates the type of lane change that is allowed.