pub trait WithinWeightThresholdMany<W> {
// Required method
fn cells_within_weight_threshold_many<I, AGG>(
&self,
origin_cells: I,
weight_threshold: W,
agg_fn: AGG,
) -> Result<H3CellMap<W>, Error>
where I: IntoParallelIterator,
I::Item: Borrow<H3Cell>,
AGG: Fn(&mut W, W) + Sync;
}
Expand description
Find all cells connected to the graph around a origin cell within a given threshold
Required Methods§
Sourcefn cells_within_weight_threshold_many<I, AGG>(
&self,
origin_cells: I,
weight_threshold: W,
agg_fn: AGG,
) -> Result<H3CellMap<W>, Error>
fn cells_within_weight_threshold_many<I, AGG>( &self, origin_cells: I, weight_threshold: W, agg_fn: AGG, ) -> Result<H3CellMap<W>, Error>
Find all cells connected to the graph within a given weight_threshold
around the
given origin_cells
.
The weights for cells which are traversed from multiple origin_cells
are aggregated using
agg_fn
. This can be used - for example - to find the minimum or maximum weight for a cell.
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.