Struct geo::GeometryCollection [−][src]
pub struct GeometryCollection<T>(pub Vec<Geometry<T>>)
where
T: CoordinateType;
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, IG> FromIterator<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType, [src]
impl<T, IG> FromIterator<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType, fn from_iter<I>(iter: I) -> GeometryCollection<T> where
I: IntoIterator<Item = IG>, [src]
fn from_iter<I>(iter: I) -> GeometryCollection<T> where
I: IntoIterator<Item = IG>, Creates a value from an iterator. Read more
impl<T> Clone for GeometryCollection<T> where
T: Clone + CoordinateType, [src]
impl<T> Clone for GeometryCollection<T> where
T: Clone + CoordinateType, fn clone(&self) -> GeometryCollection<T>[src]
fn clone(&self) -> GeometryCollection<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T> Debug for GeometryCollection<T> where
T: Debug + CoordinateType, [src]
impl<T> Debug for GeometryCollection<T> where
T: Debug + CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> IntoIterator for GeometryCollection<T> where
T: CoordinateType, [src]
impl<T> IntoIterator for GeometryCollection<T> where
T: CoordinateType, 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) -> <GeometryCollection<T> as IntoIterator>::IntoIter[src]
fn into_iter(self) -> <GeometryCollection<T> as IntoIterator>::IntoIterCreates an iterator from a value. Read more
impl<T> PartialEq<GeometryCollection<T>> for GeometryCollection<T> where
T: PartialEq<T> + CoordinateType, [src]
impl<T> PartialEq<GeometryCollection<T>> for GeometryCollection<T> where
T: PartialEq<T> + CoordinateType, fn eq(&self, other: &GeometryCollection<T>) -> bool[src]
fn eq(&self, other: &GeometryCollection<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &GeometryCollection<T>) -> bool[src]
fn ne(&self, other: &GeometryCollection<T>) -> boolThis method tests for !=.
impl<T, IG> From<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType, [src]
impl<T, IG> From<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType, fn from(x: IG) -> GeometryCollection<T>[src]
fn from(x: IG) -> GeometryCollection<T>Performs the conversion.
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for GeometryCollection<T>[src]
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for GeometryCollection<T>type Output = GeometryCollection<NT>
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::Output[src]
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::OutputApply a function to all the coordinates in a geometric object, returning a new object. Read more
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for GeometryCollection<T>[src]
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for GeometryCollection<T>type Output = GeometryCollection<NT>
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>[src]
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>Map a fallible function over all the coordinates in a geometry, returning a Result Read more
impl<T: CoordinateType> MapCoordsInplace<T> for GeometryCollection<T>[src]
impl<T: CoordinateType> MapCoordsInplace<T> for GeometryCollection<T>Auto Trait Implementations
impl<T> Send for GeometryCollection<T> where
T: Send,
impl<T> Send for GeometryCollection<T> where
T: Send, impl<T> Sync for GeometryCollection<T> where
T: Sync,
impl<T> Sync for GeometryCollection<T> where
T: Sync,