Struct postgis::twkb::Polygon
[−]
[src]
pub struct Polygon { pub rings: Vec<LineString>, }
Fields
rings: Vec<LineString>
Trait Implementations
impl PartialEq for Polygon
[src]
fn eq(&self, __arg_0: &Polygon) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Polygon) -> bool
This method tests for !=
.
impl Clone for Polygon
[src]
fn clone(&self) -> Polygon
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 Polygon
[src]
impl TwkbGeom for Polygon
[src]
fn read_twkb_body<R: Read>(
raw: &mut R,
twkb_info: &TwkbInfo
) -> Result<Self, Error>
raw: &mut R,
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> Polygon<'a> for Polygon
[src]
impl<'a> AsEwkbPolygon<'a> for Polygon
[src]
type PointType = Point
type PointIter = Iter<'a, Point>
type ItemType = LineString
type Iter = Iter<'a, Self::ItemType>
fn as_ewkb(
&'a self
) -> EwkbPolygon<'a, Self::PointType, Self::PointIter, Self::ItemType, Self::Iter>
&'a self
) -> EwkbPolygon<'a, Self::PointType, Self::PointIter, Self::ItemType, Self::Iter>
impl FromSql for Polygon
[src]
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