pub struct VectorLineWithOffset {
pub offset: f64,
pub geometry: VectorLine,
}Expand description
Built array line data with associated offset to help render dashed lines across tiles.
Fields§
§offset: f64the offset of the line to start processing the dash position
geometry: VectorLinethe line data
Implementations§
Source§impl VectorLineWithOffset
impl VectorLineWithOffset
Sourcepub fn new(offset: f64, geometry: VectorLine) -> Self
pub fn new(offset: f64, geometry: VectorLine) -> Self
Create a new VectorLineWithOffset
Sourcepub fn has_offset(&self) -> bool
pub fn has_offset(&self) -> bool
check if the line has an offset. 0.0 is considered no offset
Sourcepub fn has_m_values(&self) -> bool
pub fn has_m_values(&self) -> bool
check if the line has M values
Sourcepub fn m_values(&self) -> Option<LineStringMValues>
pub fn m_values(&self) -> Option<LineStringMValues>
Get the M values for the line
Trait Implementations§
Source§impl Clone for VectorLineWithOffset
impl Clone for VectorLineWithOffset
Source§fn clone(&self) -> VectorLineWithOffset
fn clone(&self) -> VectorLineWithOffset
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 VectorLineWithOffset
impl Debug for VectorLineWithOffset
Source§impl From<&[Point]> for VectorLineWithOffset
impl From<&[Point]> for VectorLineWithOffset
Source§impl PartialEq for VectorLineWithOffset
impl PartialEq for VectorLineWithOffset
impl StructuralPartialEq for VectorLineWithOffset
Auto Trait Implementations§
impl Freeze for VectorLineWithOffset
impl RefUnwindSafe for VectorLineWithOffset
impl Send for VectorLineWithOffset
impl Sync for VectorLineWithOffset
impl Unpin for VectorLineWithOffset
impl UnwindSafe for VectorLineWithOffset
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