pub struct DynGeometryCollection<S: CoordinateScalar, Cs: CoordinateSystem>(pub Vec<DynGeometry<S, Cs>>);Expand description
A homogeneous-(Scalar, Cs), heterogeneous-kind collection of
DynGeometry values — the v1.x OGC GeometryCollection.
§Example
use geometry_cs::Cartesian;
use geometry_model::{DynGeometry, DynGeometryCollection, Point2D};
use geometry_trait::GeometryCollection as _;
let gc = DynGeometryCollection::<f64, Cartesian>(vec![
DynGeometry::Point(Point2D::new(0.0, 0.0)),
]);
assert_eq!(gc.items().count(), 1);Tuple Fields§
§0: Vec<DynGeometry<S, Cs>>Trait Implementations§
Source§impl<S: Clone + CoordinateScalar, Cs: Clone + CoordinateSystem> Clone for DynGeometryCollection<S, Cs>
impl<S: Clone + CoordinateScalar, Cs: Clone + CoordinateSystem> Clone for DynGeometryCollection<S, Cs>
Source§fn clone(&self) -> DynGeometryCollection<S, Cs>
fn clone(&self) -> DynGeometryCollection<S, Cs>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug + CoordinateScalar, Cs: Debug + CoordinateSystem> Debug for DynGeometryCollection<S, Cs>
impl<S: Debug + CoordinateScalar, Cs: Debug + CoordinateSystem> Debug for DynGeometryCollection<S, Cs>
Source§impl<S: Default + CoordinateScalar, Cs: Default + CoordinateSystem> Default for DynGeometryCollection<S, Cs>
impl<S: Default + CoordinateScalar, Cs: Default + CoordinateSystem> Default for DynGeometryCollection<S, Cs>
Source§fn default() -> DynGeometryCollection<S, Cs>
fn default() -> DynGeometryCollection<S, Cs>
Returns the “default value” for a type. Read more
Source§impl<S, Cs> Geometry for DynGeometryCollection<S, Cs>where
S: CoordinateScalar,
Cs: CoordinateSystem,
impl<S, Cs> Geometry for DynGeometryCollection<S, Cs>where
S: CoordinateScalar,
Cs: CoordinateSystem,
Source§impl<S, Cs> GeometryCollection for DynGeometryCollection<S, Cs>where
S: CoordinateScalar,
Cs: CoordinateSystem,
impl<S, Cs> GeometryCollection for DynGeometryCollection<S, Cs>where
S: CoordinateScalar,
Cs: CoordinateSystem,
Source§impl<S: PartialEq + CoordinateScalar, Cs: PartialEq + CoordinateSystem> PartialEq for DynGeometryCollection<S, Cs>
impl<S: PartialEq + CoordinateScalar, Cs: PartialEq + CoordinateSystem> PartialEq for DynGeometryCollection<S, Cs>
impl<S: PartialEq + CoordinateScalar, Cs: PartialEq + CoordinateSystem> StructuralPartialEq for DynGeometryCollection<S, Cs>
Auto Trait Implementations§
impl<S, Cs> Freeze for DynGeometryCollection<S, Cs>
impl<S, Cs> RefUnwindSafe for DynGeometryCollection<S, Cs>where
S: RefUnwindSafe,
Cs: RefUnwindSafe,
impl<S, Cs> Send for DynGeometryCollection<S, Cs>
impl<S, Cs> Sync for DynGeometryCollection<S, Cs>
impl<S, Cs> Unpin for DynGeometryCollection<S, Cs>
impl<S, Cs> UnsafeUnpin for DynGeometryCollection<S, Cs>
impl<S, Cs> UnwindSafe for DynGeometryCollection<S, Cs>where
S: UnwindSafe,
Cs: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more