Struct geo::GeometryCollection
[−]
[src]
pub struct GeometryCollection<T>(pub Vec<Geometry<T>>)
where
T: Float;
A collection of Geometry
s.
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
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
This method tests for !=
.
impl<T: Clone> Clone for GeometryCollection<T> where
T: Float,
[src]
T: Float,
fn clone(&self) -> GeometryCollection<T>
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<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]
fn from(x: IG) -> Self
Performs the conversion.
impl<T: Float, IG: Into<Geometry<T>>> FromIterator<IG> for GeometryCollection<T>
[src]
fn from_iter<I: IntoIterator<Item = IG>>(iter: I) -> Self
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
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
Apply a function to all the coordinates in a geometric object, returning a new object. Read more