Enum postgis::ewkb::GeometryT
[−]
[src]
pub enum GeometryT<P: Point + EwkbRead> { Point(P), LineString(LineStringT<P>), Polygon(PolygonT<P>), MultiPoint(MultiPointT<P>), MultiLineString(MultiLineStringT<P>), MultiPolygon(MultiPolygonT<P>), GeometryCollection(GeometryCollectionT<P>), }
Generic Geometry Data Type
Variants
Point(P)
LineString(LineStringT<P>)
Polygon(PolygonT<P>)
MultiPoint(MultiPointT<P>)
MultiLineString(MultiLineStringT<P>)
MultiPolygon(MultiPolygonT<P>)
GeometryCollection(GeometryCollectionT<P>)
Trait Implementations
impl<P: Debug + Point + EwkbRead> Debug for GeometryT<P>
[src]
impl<P> EwkbRead for GeometryT<P> where
P: Point + EwkbRead,
[src]
P: Point + EwkbRead,
fn point_type() -> PointType
fn read_ewkb<R: Read>(raw: &mut R) -> Result<Self, Error>
fn read_ewkb_body<R: Read>(
_raw: &mut R,
_is_be: bool,
_srid: Option<i32>
) -> Result<Self, Error>
_raw: &mut R,
_is_be: bool,
_srid: Option<i32>
) -> Result<Self, Error>
impl<P> FromSql for GeometryT<P> where
P: Point + EwkbRead,
[src]
P: Point + EwkbRead,
fn from_sql(ty: &Type, raw: &[u8]) -> 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 accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified Postgres Type
. Read more
fn from_sql_null(ty: &Type) -> Result<Self, Box<Error + 'static + Sync + Send>>
Creates a new value of this type from a NULL
SQL value. Read more
fn from_sql_nullable(
ty: &Type,
raw: Option<&[u8]>
) -> Result<Self, Box<Error + 'static + Sync + Send>>
ty: &Type,
raw: Option<&[u8]>
) -> Result<Self, Box<Error + 'static + Sync + Send>>
A convenience function that delegates to from_sql
and from_sql_null
depending on the value of raw
. Read more