pub trait OnFeatureMethod<M: Clone, P: Clone + Default, D: Clone + Default> {
// Required method
fn on_feature<F>(&mut self, callback: F)
where F: FnMut(VectorFeature<M, P, D>) -> Option<VectorFeature<M, P, D>> + Send + Sync;
}Expand description
Specify a trait that defines OnFeature but ensures its thread safe A feature reader trait with a callback-based approach
Required Methods§
Sourcefn on_feature<F>(&mut self, callback: F)
fn on_feature<F>(&mut self, callback: F)
Reads features and applies the given callback function to each feature.
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.