pub enum GeometryValue {
LineString {
coordinates: Vec<Coord2D>,
srid: i32,
},
Polygon {
rings: Vec<Vec<Coord2D>>,
srid: i32,
},
MultiPoint {
points: Vec<Coord2D>,
srid: i32,
},
MultiLineString {
lines: Vec<Vec<Coord2D>>,
srid: i32,
},
MultiPolygon {
polygons: Vec<Vec<Vec<Coord2D>>>,
srid: i32,
},
GeometryCollection {
geometries: Vec<GeometryValue>,
srid: i32,
},
}Expand description
Extended geometry types beyond Point.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GeometryValue
impl Clone for GeometryValue
Source§impl Debug for GeometryValue
impl Debug for GeometryValue
Source§impl Display for GeometryValue
impl Display for GeometryValue
Source§impl PartialEq for GeometryValue
impl PartialEq for GeometryValue
impl StructuralPartialEq for GeometryValue
Auto Trait Implementations§
impl Forget for GeometryValue
impl Freeze for GeometryValuewhere
*const u8 is !null: Freeze,
PhantomData<[f64; 2]>: Freeze,
PhantomData<Vec<[f64; 2]>>: Freeze,
PhantomData<Vec<Vec<[f64; 2]>>>: Freeze,
PhantomData<GeometryValue>: Freeze,
impl Move for GeometryValue
impl RefUnwindSafe for GeometryValue
impl Send for GeometryValuewhere
RawVecInner: Send,
impl Sync for GeometryValuewhere
RawVecInner: Sync,
impl Unpin for GeometryValue
impl UnsafeUnpin for GeometryValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
PhantomData<Vec<[f64; 2]>>: UnsafeUnpin,
PhantomData<Vec<Vec<[f64; 2]>>>: UnsafeUnpin,
PhantomData<GeometryValue>: UnsafeUnpin,
impl UnwindSafe for GeometryValuewhere
RawVecInner: 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