pub struct GeometryValue {
pub srid: u32,
pub shape: GeometryShape,
}Fields§
§srid: u32§shape: GeometryShapeImplementations§
Source§impl GeometryValue
impl GeometryValue
pub fn to_geojson_value(&self) -> Result<Value, EncodeError>
pub fn to_geojson_string(&self) -> Result<String, EncodeError>
pub fn from_geojson_value(value: &Value) -> Result<Self, DecodeError>
pub fn from_geojson_str(s: &str) -> Result<Self, DecodeError>
pub fn to_wkt_string(&self) -> Result<String, EncodeError>
pub fn to_ewkt_string(&self) -> Result<String, EncodeError>
pub fn from_wkt_str(s: &str) -> Result<Self, DecodeError>
Source§impl GeometryValue
impl GeometryValue
pub fn encode_blob(&self) -> Result<Vec<u8>, EncodeError>
pub fn decode_blob(blob: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for GeometryValue
impl Clone for GeometryValue
Source§fn clone(&self) -> GeometryValue
fn clone(&self) -> GeometryValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeometryValue
impl Debug for GeometryValue
Source§impl PartialEq for GeometryValue
impl PartialEq for GeometryValue
Source§fn eq(&self, other: &GeometryValue) -> bool
fn eq(&self, other: &GeometryValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeometryValue
Auto Trait Implementations§
impl Freeze for GeometryValue
impl RefUnwindSafe for GeometryValue
impl Send for GeometryValue
impl Sync for GeometryValue
impl Unpin for GeometryValue
impl UnsafeUnpin for GeometryValue
impl UnwindSafe for GeometryValue
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