pub struct FeatureCollection {
pub features: Vec<Feature>,
}Expand description
A collection of Features.
The primary container returned by the GeoJSON parser and consumed
by VectorLayer.
Fields§
§features: Vec<Feature>The features in the collection.
Implementations§
Source§impl FeatureCollection
impl FeatureCollection
Sourcepub fn total_coords(&self) -> usize
pub fn total_coords(&self) -> usize
Total number of coordinate vertices across all features.
Trait Implementations§
Source§impl Clone for FeatureCollection
impl Clone for FeatureCollection
Source§fn clone(&self) -> FeatureCollection
fn clone(&self) -> FeatureCollection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeatureCollection
impl Debug for FeatureCollection
Source§impl Default for FeatureCollection
impl Default for FeatureCollection
Source§fn default() -> FeatureCollection
fn default() -> FeatureCollection
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a FeatureCollection
impl<'a> IntoIterator for &'a FeatureCollection
Source§impl<'a> IntoIterator for &'a mut FeatureCollection
impl<'a> IntoIterator for &'a mut FeatureCollection
Auto Trait Implementations§
impl Freeze for FeatureCollection
impl RefUnwindSafe for FeatureCollection
impl Send for FeatureCollection
impl Sync for FeatureCollection
impl Unpin for FeatureCollection
impl UnsafeUnpin for FeatureCollection
impl UnwindSafe for FeatureCollection
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