Struct postgis::ewkb::EwkbPoint
[−]
[src]
pub struct EwkbPoint<'a> { pub geom: &'a Point, pub srid: Option<i32>, pub point_type: PointType, }
Fields
geom: &'a Point
srid: Option<i32>
point_type: PointType
Trait Implementations
impl<'a> Debug for EwkbPoint<'a>
[src]
impl<'a> EwkbWrite for EwkbPoint<'a>
[src]
fn type_id(&self) -> u32
fn opt_srid(&self) -> Option<i32>
fn write_ewkb_body<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn wkb_type_id(point_type: &PointType, srid: Option<i32>) -> u32
fn write_ewkb<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn to_hex_ewkb(&self) -> String
impl<'a> ToSql for EwkbPoint<'a>
[src]
fn to_sql(
&self,
_: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<Error + Sync + Send>>
&self,
_: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<Error + Sync + Send>>
Converts the value of self
into the binary format of the specified Postgres Type
, appending it to out
. Read more
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified Postgres Type
. Read more
fn to_sql_checked(
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<Error + Sync + Send>>
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more