pub enum VectorFeature<'a> {
Mapbox(&'a mut MapboxVectorFeature),
Open(&'a mut OpenVectorFeature),
}Expand description
Either a mapbox or open vector feature. Implements the VectorFeatureMethods trait
Variants§
Mapbox(&'a mut MapboxVectorFeature)
Mapbox Vector Feature
Open(&'a mut OpenVectorFeature)
Open Vector Feature
Trait Implementations§
Source§impl<'a> Debug for VectorFeature<'a>
impl<'a> Debug for VectorFeature<'a>
Source§impl<'a> From<&'a mut MapboxVectorFeature> for VectorFeature<'a>
impl<'a> From<&'a mut MapboxVectorFeature> for VectorFeature<'a>
Source§fn from(value: &'a mut MapboxVectorFeature) -> Self
fn from(value: &'a mut MapboxVectorFeature) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a mut OpenVectorFeature> for VectorFeature<'a>
impl<'a> From<&'a mut OpenVectorFeature> for VectorFeature<'a>
Source§fn from(value: &'a mut OpenVectorFeature) -> Self
fn from(value: &'a mut OpenVectorFeature) -> Self
Converts to this type from the input type.
Source§impl VectorFeatureMethods for VectorFeature<'_>
impl VectorFeatureMethods for VectorFeature<'_>
Source§fn properties(&self) -> Properties
fn properties(&self) -> Properties
the properties
Source§fn get_type(&self) -> FeatureType
fn get_type(&self) -> FeatureType
the feature type
Source§fn has_m_values(&self) -> bool
fn has_m_values(&self) -> bool
whether the feature has m values
Source§fn is_polygons(&self) -> bool
fn is_polygons(&self) -> bool
whether the feature is a polygon type
Source§fn is_points_3d(&self) -> bool
fn is_points_3d(&self) -> bool
whether the feature is a points 3D type
Source§fn is_lines_3d(&self) -> bool
fn is_lines_3d(&self) -> bool
whether the feature is a line 3D type
Source§fn is_polygons_3d(&self) -> bool
fn is_polygons_3d(&self) -> bool
whether the feature is a polygon 3D type
Source§fn load_points(&mut self) -> VectorPoints
fn load_points(&mut self) -> VectorPoints
regardless of the type, we return a flattend point array
Source§fn load_points_3d(&mut self) -> VectorPoints3D
fn load_points_3d(&mut self) -> VectorPoints3D
regardless of the type, we return a flattend point3D array
Source§fn load_lines(&mut self) -> VectorLinesWithOffset
fn load_lines(&mut self) -> VectorLinesWithOffset
an array of lines.
Source§fn load_lines_3d(&mut self) -> VectorLines3DWithOffset
fn load_lines_3d(&mut self) -> VectorLines3DWithOffset
an array of 3D lines.
Source§fn load_polys(&mut self) -> Vec<VectorLinesWithOffset>
fn load_polys(&mut self) -> Vec<VectorLinesWithOffset>
an array of polygons.
Source§fn load_polys_3d(&mut self) -> Vec<VectorLines3DWithOffset>
fn load_polys_3d(&mut self) -> Vec<VectorLines3DWithOffset>
an array of 3D polygons.
Source§fn load_geometry_flat(&mut self) -> (Vec<f64>, Vec<u32>)
fn load_geometry_flat(&mut self) -> (Vec<f64>, Vec<u32>)
(flattened geometry & tesslation if applicable, indices)
Source§fn load_geometry(&mut self) -> VectorGeometry
fn load_geometry(&mut self) -> VectorGeometry
load the geometry
Source§fn read_indices(&mut self) -> Vec<u32>
fn read_indices(&mut self) -> Vec<u32>
load the indices
Auto Trait Implementations§
impl<'a> Freeze for VectorFeature<'a>
impl<'a> !RefUnwindSafe for VectorFeature<'a>
impl<'a> !Send for VectorFeature<'a>
impl<'a> !Sync for VectorFeature<'a>
impl<'a> Unpin for VectorFeature<'a>
impl<'a> !UnwindSafe for VectorFeature<'a>
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