pub struct PointValue {
pub srid: u32,
pub position: Position,
}Fields§
§srid: u32§position: PositionImplementations§
Source§impl PointValue
impl PointValue
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<PointValue, DecodeError>
pub fn from_geojson_str(s: &str) -> Result<PointValue, 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<PointValue, DecodeError>
Source§impl PointValue
impl PointValue
pub fn encode_blob(&self) -> Result<Vec<u8>, EncodeError>
pub fn decode_blob(blob: &[u8]) -> Result<PointValue, DecodeError>
Trait Implementations§
Source§impl Clone for PointValue
impl Clone for PointValue
Source§fn clone(&self) -> PointValue
fn clone(&self) -> PointValue
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 PointValue
impl Debug for PointValue
Source§impl PartialEq for PointValue
impl PartialEq for PointValue
Source§fn eq(&self, other: &PointValue) -> bool
fn eq(&self, other: &PointValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointValue
Auto Trait Implementations§
impl Freeze for PointValue
impl RefUnwindSafe for PointValue
impl Send for PointValue
impl Sync for PointValue
impl Unpin for PointValue
impl UnsafeUnpin for PointValue
impl UnwindSafe for PointValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more