Struct postgis::ewkb::MultiPolygonT
[−]
[src]
pub struct MultiPolygonT<P: Point + EwkbRead> { pub polygons: Vec<PolygonT<P>>, pub srid: Option<i32>, }
Fields
polygons: Vec<PolygonT<P>>
srid: Option<i32>
Methods
impl<P> MultiPolygonT<P> where
P: Point + EwkbRead,
[src]
P: Point + EwkbRead,
fn new() -> MultiPolygonT<P>
Trait Implementations
impl<P: PartialEq + Point + EwkbRead> PartialEq for MultiPolygonT<P>
[src]
fn eq(&self, __arg_0: &MultiPolygonT<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MultiPolygonT<P>) -> bool
This method tests for !=
.
impl<P: Clone + Point + EwkbRead> Clone for MultiPolygonT<P>
[src]
fn clone(&self) -> MultiPolygonT<P>
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<P: Debug + Point + EwkbRead> Debug for MultiPolygonT<P>
[src]
impl<P> FromIterator<PolygonT<P>> for MultiPolygonT<P> where
P: Point + EwkbRead,
[src]
P: Point + EwkbRead,
fn from_iter<I: IntoIterator<Item = PolygonT<P>>>(
iterable: I
) -> MultiPolygonT<P>
iterable: I
) -> MultiPolygonT<P>
Creates a value from an iterator. Read more
impl<'a, P> MultiPolygon<'a> for MultiPolygonT<P> where
P: 'a + Point + EwkbRead,
[src]
P: 'a + Point + EwkbRead,
type ItemType = PolygonT<P>
type Iter = Iter<'a, Self::ItemType>
fn polygons(&'a self) -> Self::Iter
impl<P> EwkbRead for MultiPolygonT<P> where
P: Point + EwkbRead,
[src]
P: Point + EwkbRead,
fn point_type() -> PointType
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>
fn read_ewkb<R: Read>(raw: &mut R) -> Result<Self, Error>
impl<'a, P> AsEwkbMultiPolygon<'a> for MultiPolygonT<P> where
P: 'a + Point + EwkbRead,
[src]
P: 'a + Point + EwkbRead,
type PointType = P
type PointIter = Iter<'a, P>
type LineType = LineStringT<P>
type LineIter = Iter<'a, Self::LineType>
type ItemType = PolygonT<P>
type Iter = Iter<'a, Self::ItemType>
fn as_ewkb(
&'a self
) -> EwkbMultiPolygon<'a, Self::PointType, Self::PointIter, Self::LineType, Self::LineIter, Self::ItemType, Self::Iter>
&'a self
) -> EwkbMultiPolygon<'a, Self::PointType, Self::PointIter, Self::LineType, Self::LineIter, Self::ItemType, Self::Iter>
impl<'a, T> FromSql for MultiPolygonT<T> where
T: 'a + Point + EwkbRead,
[src]
T: 'a + 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
impl<'a, T> ToSql for MultiPolygonT<T> where
T: 'a + Point + EwkbRead,
[src]
T: 'a + Point + EwkbRead,
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 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
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified Postgres Type
. Read more