[][src]Struct geo_types::GeometryCollection

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.

Methods

impl<T: CoordinateType> GeometryCollection<T>[src]

pub fn new() -> GeometryCollection<T>[src]

Return an empty GeometryCollection

pub fn len(&self) -> usize[src]

Number of geometries in this GeometryCollection

pub fn is_empty(&self) -> bool[src]

Is this GeometryCollection empty

Trait Implementations

impl<T: Clone> Clone for GeometryCollection<T> where
    T: CoordinateType
[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq<GeometryCollection<T>> for GeometryCollection<T> where
    T: CoordinateType
[src]

impl<T: CoordinateType, IG: Into<Geometry<T>>> From<IG> for GeometryCollection<T>[src]

Convert any Geometry (or anything that can be converted to a Geometry) into a GeometryCollection

impl<T: CoordinateType> 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?

impl<T: Debug> Debug for GeometryCollection<T> where
    T: CoordinateType
[src]

impl<T: CoordinateType, IG: Into<Geometry<T>>> FromIterator<IG> for GeometryCollection<T>[src]

Collect Geometries (or what can be converted to a Geometry) into a GeometryCollection

Auto Trait Implementations

impl<T> Send for GeometryCollection<T> where
    T: Send

impl<T> Sync for GeometryCollection<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]