pub struct VectorBaseGeometry<G = VectorGeometry, O = VectorOffsets> {
pub _type: VectorGeometryType,
pub is_3d: bool,
pub coordinates: G,
pub offset: Option<O>,
pub bbox: Option<BBox3D>,
pub vec_bbox: Option<BBox3D>,
pub indices: Option<Vec<u32>>,
pub tesselation: Option<f64>,
}
Expand description
BaseGeometry is the a generic geometry type
Fields§
§_type: VectorGeometryType
The geometry type
is_3d: bool
Specifies if the geometry is 3D or 2D
coordinates: G
The geometry shape
offset: Option<O>
The geometry offsets if applicable
bbox: Option<BBox3D>
The BBox shape - always in lon-lat
vec_bbox: Option<BBox3D>
temporary bbox to track 0->1 clipping
indices: Option<Vec<u32>>
Polygon and MultiPolygon specific property
tesselation: Option<f64>
Polygon and MultiPolygon specific property
Trait Implementations§
Source§impl<G: Clone, O: Clone> Clone for VectorBaseGeometry<G, O>
impl<G: Clone, O: Clone> Clone for VectorBaseGeometry<G, O>
Source§fn clone(&self) -> VectorBaseGeometry<G, O>
fn clone(&self) -> VectorBaseGeometry<G, O>
Returns a copy 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<G: Default, O: Default> Default for VectorBaseGeometry<G, O>
impl<G: Default, O: Default> Default for VectorBaseGeometry<G, O>
Source§fn default() -> VectorBaseGeometry<G, O>
fn default() -> VectorBaseGeometry<G, O>
Returns the “default value” for a type. Read more
Source§impl<'de, G, O> Deserialize<'de> for VectorBaseGeometry<G, O>where
G: Deserialize<'de>,
O: Deserialize<'de>,
impl<'de, G, O> Deserialize<'de> for VectorBaseGeometry<G, O>where
G: Deserialize<'de>,
O: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<G, O> Serialize for VectorBaseGeometry<G, O>
impl<G, O> Serialize for VectorBaseGeometry<G, O>
impl<G, O> StructuralPartialEq for VectorBaseGeometry<G, O>
Auto Trait Implementations§
impl<G, O> Freeze for VectorBaseGeometry<G, O>
impl<G, O> RefUnwindSafe for VectorBaseGeometry<G, O>where
G: RefUnwindSafe,
O: RefUnwindSafe,
impl<G, O> Send for VectorBaseGeometry<G, O>
impl<G, O> Sync for VectorBaseGeometry<G, O>
impl<G, O> Unpin for VectorBaseGeometry<G, O>
impl<G, O> UnwindSafe for VectorBaseGeometry<G, O>where
G: UnwindSafe,
O: UnwindSafe,
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