[−][src]Struct geo::GeometryCollection
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> GeometryCollection<T> where
T: CoordinateType,
[src]
T: CoordinateType,
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 for GeometryCollection<T> where
T: Clone + CoordinateType,
[src]
T: Clone + CoordinateType,
fn clone(&self) -> GeometryCollection<T>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, IG> FromIterator<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType,
[src]
IG: Into<Geometry<T>>,
T: CoordinateType,
Collect Geometries (or what can be converted to a Geometry) into a GeometryCollection
fn from_iter<I>(iter: I) -> GeometryCollection<T> where
I: IntoIterator<Item = IG>,
[src]
I: IntoIterator<Item = IG>,
impl<T, IG> From<IG> for GeometryCollection<T> where
IG: Into<Geometry<T>>,
T: CoordinateType,
[src]
IG: Into<Geometry<T>>,
T: CoordinateType,
Convert any Geometry (or anything that can be converted to a Geometry) into a GeometryCollection
fn from(x: IG) -> GeometryCollection<T>
[src]
impl<T> Debug for GeometryCollection<T> where
T: Debug + CoordinateType,
[src]
T: Debug + CoordinateType,
impl<T> IntoIterator for GeometryCollection<T> where
T: CoordinateType,
[src]
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]
impl<T> PartialEq<GeometryCollection<T>> for GeometryCollection<T> where
T: PartialEq<T> + CoordinateType,
[src]
T: PartialEq<T> + CoordinateType,
fn eq(&self, other: &GeometryCollection<T>) -> bool
[src]
fn ne(&self, other: &GeometryCollection<T>) -> bool
[src]
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for GeometryCollection<T>
[src]
type Output = GeometryCollection<NT>
fn map_coords(&self, func: &dyn Fn(&(T, T)) -> (NT, NT)) -> Self::Output
[src]
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for GeometryCollection<T>
[src]
type Output = GeometryCollection<NT>
fn try_map_coords(
&self,
func: &dyn Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>
[src]
&self,
func: &dyn Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>
impl<T: CoordinateType> MapCoordsInplace<T> for GeometryCollection<T>
[src]
Auto Trait Implementations
impl<T> Send for GeometryCollection<T> where
T: Send,
T: Send,
impl<T> Sync for GeometryCollection<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, G> RotatePoint for G where
G: MapCoords<T, T, Output = G>,
T: Float,
[src]
G: MapCoords<T, T, Output = G>,
T: Float,
fn rotate_around_point(&Self, T, Point<T>) -> G
[src]
impl<T, G> Translate for G where
G: MapCoords<T, T, Output = G> + MapCoordsInplace<T>,
T: CoordinateType,
[src]
G: MapCoords<T, T, Output = G> + MapCoordsInplace<T>,
T: CoordinateType,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,