Struct postgis::twkb::Point
[−]
[src]
pub struct Point {
pub x: f64,
pub y: f64,
}Fields
x: f64
y: f64
Trait Implementations
impl PartialEq for Point[src]
fn eq(&self, __arg_0: &Point) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Point) -> bool
This method tests for !=.
impl Clone for Point[src]
fn clone(&self) -> Point
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Point[src]
impl Point for Point[src]
impl TwkbGeom for Point[src]
fn read_twkb_body<R: Read>(raw: &mut R,
twkb_info: &TwkbInfo)
-> Result<Self, Error>
twkb_info: &TwkbInfo)
-> Result<Self, Error>
fn read_twkb<R: Read>(raw: &mut R) -> Result<Self, Error>
fn read_idlist<R: Read>(raw: &mut R, size: usize) -> Result<Vec<u64>, Error>
impl<'a> AsEwkbPoint<'a> for Point[src]
impl FromSql for Point[src]
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified Postgres Type. Read more
fn from_sql(ty: &Type,
raw: &[u8],
_ctx: &SessionInfo)
-> Result<Self, Box<Error + Sync + Send>>
raw: &[u8],
_ctx: &SessionInfo)
-> Result<Self, Box<Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified Postgres Type in its binary format. Read more
fn from_sql_null(ty: &Type,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
Creates a new value of this type from a NULL SQL value. Read more
fn from_sql_nullable(ty: &Type,
raw: Option<&[u8]>,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
raw: Option<&[u8]>,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
A convenience function that delegates to from_sql and from_sql_null depending on the value of raw. Read more