Struct geo::GeometryCollection
[−]
[src]
pub struct GeometryCollection<T>(pub Vec<Geometry<T>>)
where
T: Float;
A collection of Geometry
types
Can be created from a Vec
of Geometries, or from an Iterator which yields Geometries.
Iterating over this objects, yields the component Geometries.
Trait Implementations
impl<T: PartialEq> PartialEq for GeometryCollection<T> where
T: Float,
[src]
T: Float,
fn eq(&self, __arg_0: &GeometryCollection<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GeometryCollection<T>) -> bool
[src]
This method tests for !=
.
impl<T: Clone> Clone for GeometryCollection<T> where
T: Float,
[src]
T: Float,
fn clone(&self) -> GeometryCollection<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for GeometryCollection<T> where
T: Float,
[src]
T: Float,
impl<T: Float, IG: Into<Geometry<T>>> From<IG> for GeometryCollection<T>
[src]
impl<T: Float, IG: Into<Geometry<T>>> FromIterator<IG> for GeometryCollection<T>
[src]
fn from_iter<I: IntoIterator<Item = IG>>(iter: I) -> Self
[src]
Creates a value from an iterator. Read more
impl<T: Float> IntoIterator for GeometryCollection<T>
[src]
type Item = Geometry<T>
The type of the elements being iterated over.
type IntoIter = IntoIter<Geometry<T>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<T: Float, NT: Float> MapCoords<T, NT> for GeometryCollection<T>
[src]
type Output = GeometryCollection<NT>
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::Output
[src]
Apply a function to all the coordinates in a geometric object, returning a new object. Read more
impl<'a, T> FromPostgis<&'a GeometryCollectionT<T>> for GeometryCollection<f64> where
T: Point + EwkbRead,
[src]
T: Point + EwkbRead,
fn from_postgis(gc: &'a GeometryCollectionT<T>) -> Self
[src]
This implementation discards geometries that don't convert
(return None
when from_postgis()
is called on them).
impl ToPostgis<GeometryCollection> for GeometryCollection<f64>
[src]
fn to_postgis_with_srid(&self, srid: Option<i32>) -> GeometryCollection
[src]
Converts this geometry to a PostGIS type, using the supplied SRID.
fn to_postgis_wgs84(&self) -> T
[src]
Converts this WGS84 geometry to a PostGIS type.