pub struct VectorLine3DWithOffset {
pub offset: f64,
pub geometry: VectorLine3D,
}
Expand description
Built array line data with associated offset to help render dashed lines across tiles.
Fields§
§offset: f64
the offset of the line to start processing the dash position
geometry: VectorLine3D
the line data
Implementations§
Source§impl VectorLine3DWithOffset
impl VectorLine3DWithOffset
Sourcepub fn new(offset: f64, geometry: VectorLine3D) -> Self
pub fn new(offset: f64, geometry: VectorLine3D) -> Self
Create a new VectorLine3DWithOffset
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 VectorLine3DWithOffset
impl Clone for VectorLine3DWithOffset
Source§fn clone(&self) -> VectorLine3DWithOffset
fn clone(&self) -> VectorLine3DWithOffset
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 VectorLine3DWithOffset
impl Debug for VectorLine3DWithOffset
Source§impl PartialEq for VectorLine3DWithOffset
impl PartialEq for VectorLine3DWithOffset
impl StructuralPartialEq for VectorLine3DWithOffset
Auto Trait Implementations§
impl Freeze for VectorLine3DWithOffset
impl RefUnwindSafe for VectorLine3DWithOffset
impl Send for VectorLine3DWithOffset
impl Sync for VectorLine3DWithOffset
impl Unpin for VectorLine3DWithOffset
impl UnwindSafe for VectorLine3DWithOffset
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