#[non_exhaustive]pub enum Geometry<T: CoordType = f64> {
Point(Point<T>),
LineString(LineString<T>),
LinearRing(LinearRing<T>),
Polygon(Polygon<T>),
MultiGeometry(MultiGeometry<T>),
Element(Element),
}Expand description
Enum for elements in kml:AbstractGeometryGroup, 10.1
in the KML specification
kml:Model is currently represented by a placeholder element
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.
Point(Point<T>)
LineString(LineString<T>)
LinearRing(LinearRing<T>)
Polygon(Polygon<T>)
MultiGeometry(MultiGeometry<T>)
Element(Element)
Trait Implementations§
Source§impl<T: PartialEq + CoordType> PartialEq for Geometry<T>
impl<T: PartialEq + CoordType> PartialEq for Geometry<T>
impl<T: PartialEq + CoordType> StructuralPartialEq for Geometry<T>
Auto Trait Implementations§
impl<T> Freeze for Geometry<T>where
T: Freeze,
impl<T> RefUnwindSafe for Geometry<T>where
T: RefUnwindSafe,
impl<T> Send for Geometry<T>where
T: Send,
impl<T> Sync for Geometry<T>where
T: Sync,
impl<T> Unpin for Geometry<T>where
T: Unpin,
impl<T> UnsafeUnpin for Geometry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Geometry<T>where
T: 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