pub struct GeometryCollectionT<P: Point + EwkbRead> {
pub geometries: Vec<GeometryT<P>>,
pub srid: Option<i32>,
}Fields§
§geometries: Vec<GeometryT<P>>§srid: Option<i32>Implementations§
Source§impl<P> GeometryCollectionT<P>
impl<P> GeometryCollectionT<P>
pub fn new() -> GeometryCollectionT<P>
Trait Implementations§
Source§impl<'a, P> AsEwkbGeometryCollection<'a> for GeometryCollectionT<P>
impl<'a, P> AsEwkbGeometryCollection<'a> for GeometryCollectionT<P>
type PointType = P
type PointIter = Iter<'a, P>
type MultiPointType = MultiPointT<P>
type LineType = LineStringT<P>
type LineIter = Iter<'a, <GeometryCollectionT<P> as AsEwkbGeometryCollection<'a>>::LineType>
type MultiLineType = MultiLineStringT<P>
type PolyType = PolygonT<P>
type PolyIter = Iter<'a, <GeometryCollectionT<P> as AsEwkbGeometryCollection<'a>>::PolyType>
type MultiPolyType = MultiPolygonT<P>
type GeomType = GeometryT<P>
type GeomIter = Iter<'a, <GeometryCollectionT<P> as AsEwkbGeometryCollection<'a>>::GeomType>
type GeomCollection = GeometryCollectionT<P>
fn as_ewkb( &'a self, ) -> EwkbGeometryCollection<'a, Self::PointType, Self::PointIter, Self::MultiPointType, Self::LineType, Self::LineIter, Self::MultiLineType, Self::PolyType, Self::PolyIter, Self::MultiPolyType, Self::GeomType, Self::GeomIter, Self::GeomCollection>
Source§impl<P: Clone + Point + EwkbRead> Clone for GeometryCollectionT<P>
impl<P: Clone + Point + EwkbRead> Clone for GeometryCollectionT<P>
Source§fn clone(&self) -> GeometryCollectionT<P>
fn clone(&self) -> GeometryCollectionT<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P> EwkbRead for GeometryCollectionT<P>
impl<P> EwkbRead for GeometryCollectionT<P>
Source§impl<'a, P> FromSql<'a> for GeometryCollectionT<P>
impl<'a, P> FromSql<'a> for GeometryCollectionT<P>
Source§fn from_sql(ty: &Type, raw: &[u8]) -> Result<Self, Box<dyn Error + Sync + Send>>
fn from_sql(ty: &Type, raw: &[u8]) -> Result<Self, Box<dyn 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 moreSource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres
Type.Source§impl<'a, P> ToSql for GeometryCollectionT<P>
impl<'a, P> ToSql for GeometryCollectionT<P>
Source§fn to_sql(
&self,
_: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql( &self, _: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self into the binary format of the specified
Postgres Type, appending it to out. Read moreSource§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
Source§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type.Source§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
Auto Trait Implementations§
impl<P> Freeze for GeometryCollectionT<P>
impl<P> RefUnwindSafe for GeometryCollectionT<P>where
P: RefUnwindSafe,
impl<P> Send for GeometryCollectionT<P>
impl<P> Sync for GeometryCollectionT<P>
impl<P> Unpin for GeometryCollectionT<P>where
P: Unpin,
impl<P> UnwindSafe for GeometryCollectionT<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
Source§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self as a ToSql trait object.