pub trait FeatureReader<M: Clone, P: Clone + Default, D: Clone + Default> {
type FeatureIterator<'a>: Iterator<Item = VectorFeature<M, P, D>>
where Self: 'a;
// Required methods
fn iter(&self) -> Self::FeatureIterator<'_>;
fn par_iter(
&self,
pool_size: usize,
thread_id: usize,
) -> Self::FeatureIterator<'_>;
}Expand description
A feature reader that all readers should implement
Required Associated Types§
Sourcetype FeatureIterator<'a>: Iterator<Item = VectorFeature<M, P, D>>
where
Self: 'a
type FeatureIterator<'a>: Iterator<Item = VectorFeature<M, P, D>> where Self: 'a
The Feature Reader should implement an iterator of some kind
Required Methods§
Sourcefn iter(&self) -> Self::FeatureIterator<'_>
fn iter(&self) -> Self::FeatureIterator<'_>
All readers have an iter function that returns a Iterator struct
Sourcefn par_iter(
&self,
pool_size: usize,
thread_id: usize,
) -> Self::FeatureIterator<'_>
fn par_iter( &self, pool_size: usize, thread_id: usize, ) -> Self::FeatureIterator<'_>
All readers have a par_iter function that returns a ParallelIterator struct
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl FeatureReader<(), GPXProperties, GPXWaypoint> for GPXReader
A feature reader trait with a callback-based approach
impl FeatureReader<(), GPXProperties, GPXWaypoint> for GPXReader
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GPXIterator<'a>
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReader
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReader
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GBFSIterator
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV1
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV1
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GBFSIteratorV1
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV2
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV2
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GBFSIteratorV2
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV3
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV3
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GBFSIteratorV3
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GTFSScheduleReader
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GTFSScheduleReader
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GTFSScheduleIterator
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for WKTGeometryReader
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for WKTGeometryReader
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = WKTIterator<'a>
Source§impl FeatureReader<Vec<Grib2ProductDefinition>, Map<String, ValueType>, Map<String, ValueType>> for GRIB2Reader
A feature reader trait with a callback-based approach
impl FeatureReader<Vec<Grib2ProductDefinition>, Map<String, ValueType>, Map<String, ValueType>> for GRIB2Reader
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GRIB2Iterator<'a>
Source§impl<D: Clone + Default + GetRasterTileValue> FeatureReader<TileMetadata, D, D> for RasterTileFetcher<D>
Available on crate feature std only.
impl<D: Clone + Default + GetRasterTileValue> FeatureReader<TileMetadata, D, D> for RasterTileFetcher<D>
std only.type FeatureIterator<'a> = RasterIterator<'a, D> where Self: 'a
Source§impl<M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for JSONCollectionReader<M, P, D>
A feature reader trait with a callback-based approach
impl<M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for JSONCollectionReader<M, P, D>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = JSONCollectionIterator<'a, M, P, D> where M: 'a, P: 'a, D: 'a
Source§impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, LASPoint> for LAZReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, LASPoint> for LAZReader<T>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = LAZIterator<'a, T> where T: 'a
Source§impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GISReader<T>
impl<T: Reader + Debug> FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GISReader<T>
type FeatureIterator<'a> = GISIterator<'a, T> where T: 'a
Source§impl<T: Reader> FeatureReader<(), Map<String, ValueType>, LASPoint> for LASReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader> FeatureReader<(), Map<String, ValueType>, LASPoint> for LASReader<T>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = LASIterator<'a, T> where T: 'a
Source§impl<T: Reader> FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for NetCDFReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader> FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for NetCDFReader<T>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = CDFIterator<'a, T> where T: 'a
Source§impl<T: Reader> FeatureReader<GeoTIFFMetadata, Map<String, ValueType>, RGBA> for GeoTIFFReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader> FeatureReader<GeoTIFFMetadata, Map<String, ValueType>, RGBA> for GeoTIFFReader<T>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = GeoTIFFIterator<'a, T> where T: 'a
Source§impl<T: Reader> FeatureReader<NadMetadata, Map<String, ValueType>, Map<String, ValueType>> for NadGridReader<T>
A feature reader trait with a callback-based approach
impl<T: Reader> FeatureReader<NadMetadata, Map<String, ValueType>, Map<String, ValueType>> for NadGridReader<T>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = NadGridIterator<'a, T> where T: 'a
Source§impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for JSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for JSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = JSONIterator<'a, T, M, P, D> where T: 'a, M: 'a, P: 'a, D: 'a
Source§impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for NewLineDelimitedJSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for NewLineDelimitedJSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = NewLineDelimitedJSONIterator<'a, T, M, P, D> where T: 'a, M: 'a, P: 'a, D: 'a
Source§impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for SequenceJSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
impl<T: Reader, M: Clone + DeserializeOwned, P: Clone + Default + DeserializeOwned, D: Clone + Default + DeserializeOwned> FeatureReader<M, P, D> for SequenceJSONReader<T, M, P, D>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = SequenceJSONIterator<'a, T, M, P, D> where T: 'a, M: 'a, P: 'a, D: 'a
Source§impl<T: Reader, P: MValueCompatible + DeserializeOwned> FeatureReader<(), P, Map<String, ValueType>> for CSVReader<T, P>
A feature reader trait with a callback-based approach
impl<T: Reader, P: MValueCompatible + DeserializeOwned> FeatureReader<(), P, Map<String, ValueType>> for CSVReader<T, P>
A feature reader trait with a callback-based approach
type FeatureIterator<'a> = CSVIterator<'a, T, P> where T: 'a, P: 'a
Source§impl<T: Reader, P: MValueCompatible> FeatureReader<(), P, Map<String, ValueType>> for ShapeFileReader<T, P>
A feature reader trait with a callback-based approach
impl<T: Reader, P: MValueCompatible> FeatureReader<(), P, Map<String, ValueType>> for ShapeFileReader<T, P>
A feature reader trait with a callback-based approach