pub struct LaneMarkingLine {
pub length: f64,
pub space: f64,
pub width: f64,
pub r_offset: f64,
pub color: LaneMarkingColor,
}Fields§
§length: f64Length of the visible (painted) part of each dash. For solid lines, this should be 0 (value is ignored).
space: f64Length of the gap between visible parts. For solid lines, this should be 0.
width: f64Width of this line, in meters.
r_offset: f64Lateral offset from the lane boundary. Positive values offset in the positive r-direction (towards the lane’s left edge when facing the positive s-direction). This allows positioning multiple lines relative to each other.
color: LaneMarkingColorColor of this specific line. If set to kUnknown, the parent LaneMarking’s color should be used.
Implementations§
Source§impl LaneMarkingLine
impl LaneMarkingLine
Sourcepub fn new(
length: f64,
space: f64,
width: f64,
r_offset: f64,
color: LaneMarkingColor,
) -> LaneMarkingLine
pub fn new( length: f64, space: f64, width: f64, r_offset: f64, color: LaneMarkingColor, ) -> LaneMarkingLine
Creates a new LaneMarkingLine.
Trait Implementations§
Source§impl Clone for LaneMarkingLine
impl Clone for LaneMarkingLine
Source§fn clone(&self) -> LaneMarkingLine
fn clone(&self) -> LaneMarkingLine
Returns a duplicate 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 LaneMarkingLine
impl Debug for LaneMarkingLine
Source§impl PartialEq for LaneMarkingLine
impl PartialEq for LaneMarkingLine
impl Copy for LaneMarkingLine
impl StructuralPartialEq for LaneMarkingLine
Auto Trait Implementations§
impl Freeze for LaneMarkingLine
impl RefUnwindSafe for LaneMarkingLine
impl Send for LaneMarkingLine
impl Sync for LaneMarkingLine
impl Unpin for LaneMarkingLine
impl UnwindSafe for LaneMarkingLine
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