#[repr(transparent)]pub struct MultiPoint<P: PointTrait>(pub Vec<P>);Expand description
Default MultiPoint — a Vec<P> newtype.
Mirrors boost::geometry::model::multi_point<Point> from
boost/geometry/geometries/multi_point.hpp:52-100. The
#[repr(transparent)] annotation guarantees the in-memory layout
matches the underlying Vec<P>, mirroring the invariant Boost
relies on by inheriting publicly from std::vector<Point>
(boost/geometry/geometries/multi_point.hpp:58).
Tuple Fields§
§0: Vec<P>Implementations§
Source§impl<P: PointTrait> MultiPoint<P>
impl<P: PointTrait> MultiPoint<P>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Construct an empty multi-point.
Mirrors the default multi_point() constructor at
boost/geometry/geometries/multi_point.hpp:66-68.
Trait Implementations§
Source§impl<P: Clone + PointTrait> Clone for MultiPoint<P>
impl<P: Clone + PointTrait> Clone for MultiPoint<P>
Source§fn clone(&self) -> MultiPoint<P>
fn clone(&self) -> MultiPoint<P>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<P: Debug + PointTrait> Debug for MultiPoint<P>
impl<P: Debug + PointTrait> Debug for MultiPoint<P>
Source§impl<P: PointTrait> Default for MultiPoint<P>
impl<P: PointTrait> Default for MultiPoint<P>
Source§impl<P: PointTrait> Geometry for MultiPoint<P>
Tag this concrete type as a MultiPoint. Mirrors the
traits::tag<model::multi_point<...>> specialisation at
boost/geometry/geometries/multi_point.hpp:101-115.
impl<P: PointTrait> Geometry for MultiPoint<P>
Tag this concrete type as a MultiPoint. Mirrors the
traits::tag<model::multi_point<...>> specialisation at
boost/geometry/geometries/multi_point.hpp:101-115.
Source§impl<P: PointTrait> MultiPoint for MultiPoint<P>
Wire the MultiPoint concept up. The points() iterator hands back
self.0.iter() — slice::Iter is already ExactSizeIterator.
Plays the role of boost::begin(mp) / boost::end(mp) on
model::multi_point (boost/geometry/geometries/multi_point.hpp:58-62).
impl<P: PointTrait> MultiPoint for MultiPoint<P>
Wire the MultiPoint concept up. The points() iterator hands back
self.0.iter() — slice::Iter is already ExactSizeIterator.
Plays the role of boost::begin(mp) / boost::end(mp) on
model::multi_point (boost/geometry/geometries/multi_point.hpp:58-62).