Enum Geometry
#[non_exhaustive]pub enum Geometry {
Empty,
Point(LatLng),
LineString(Vec<LatLng>),
Polygon(Vec<Vec<LatLng>>),
MultiPoint(Vec<LatLng>),
MultiLineString(Vec<Vec<LatLng>>),
MultiPolygon(Vec<Vec<Vec<LatLng>>>),
GeometryCollection(Vec<Geometry>),
}Expand description
Owned geometry descriptor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Point(LatLng)
LineString(Vec<LatLng>)
Polygon(Vec<Vec<LatLng>>)
MultiPoint(Vec<LatLng>)
MultiLineString(Vec<Vec<LatLng>>)
MultiPolygon(Vec<Vec<Vec<LatLng>>>)
GeometryCollection(Vec<Geometry>)
Trait Implementations§
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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