pub enum BaseVectorFeature {
BaseVectorPointsFeature(BaseVectorPointsFeature),
BaseVectorLinesFeature(BaseVectorLinesFeature),
BaseVectorPolysFeature(BaseVectorPolysFeature),
BaseVectorPoints3DFeature(BaseVectorPoints3DFeature),
BaseVectorLines3DFeature(BaseVectorLines3DFeature),
BaseVectorPolys3DFeature(BaseVectorPolys3DFeature),
}
Expand description
A type that encompasses all vector tile feature types
Variants§
BaseVectorPointsFeature(BaseVectorPointsFeature)
Points
BaseVectorLinesFeature(BaseVectorLinesFeature)
Lines
BaseVectorPolysFeature(BaseVectorPolysFeature)
Polygons
BaseVectorPoints3DFeature(BaseVectorPoints3DFeature)
3D Points
BaseVectorLines3DFeature(BaseVectorLines3DFeature)
3D Lines
BaseVectorPolys3DFeature(BaseVectorPolys3DFeature)
3D Polygons
Implementations§
Source§impl BaseVectorFeature
impl BaseVectorFeature
Sourcepub fn properties(&self) -> &Properties
pub fn properties(&self) -> &Properties
get the feature properties
Sourcepub fn has_m_values(&self) -> bool
pub fn has_m_values(&self) -> bool
check if the feature has m values
Sourcepub fn m_values(&self) -> Option<LineStringMValues>
pub fn m_values(&self) -> Option<LineStringMValues>
get the feature m values
Sourcepub fn get_type(&self) -> FeatureType
pub fn get_type(&self) -> FeatureType
get the feature type
Sourcepub fn tessellation(&self) -> Option<TessellationWrapper>
pub fn tessellation(&self) -> Option<TessellationWrapper>
get the feature tessellation
Sourcepub fn has_offsets(&self) -> bool
pub fn has_offsets(&self) -> bool
check if the feature has offsets
Sourcepub fn encode_to_cache(
&self,
cache: &mut ColumnCacheWriter,
m_shape: Option<&Shape>,
) -> usize
pub fn encode_to_cache( &self, cache: &mut ColumnCacheWriter, m_shape: Option<&Shape>, ) -> usize
encode the feature to cache
Trait Implementations§
Source§impl Clone for BaseVectorFeature
impl Clone for BaseVectorFeature
Source§fn clone(&self) -> BaseVectorFeature
fn clone(&self) -> BaseVectorFeature
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 BaseVectorFeature
impl Debug for BaseVectorFeature
Source§impl From<&mut MapboxVectorFeature> for BaseVectorFeature
impl From<&mut MapboxVectorFeature> for BaseVectorFeature
Source§fn from(mvt: &mut MapboxVectorFeature) -> Self
fn from(mvt: &mut MapboxVectorFeature) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BaseVectorFeature
impl PartialEq for BaseVectorFeature
impl StructuralPartialEq for BaseVectorFeature
Auto Trait Implementations§
impl Freeze for BaseVectorFeature
impl RefUnwindSafe for BaseVectorFeature
impl Send for BaseVectorFeature
impl Sync for BaseVectorFeature
impl Unpin for BaseVectorFeature
impl UnwindSafe for BaseVectorFeature
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