pub trait ShortestPathManyToMany<W>{
// Required method
fn shortest_path_many_to_many_map<I, OPT, PM, O>(
&self,
origin_cells: I,
destination_cells: I,
options: &OPT,
path_transform_fn: PM,
) -> Result<H3CellMap<Vec<O>>, Error>
where I: IntoIterator,
I::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync,
PM: Fn(Path<W>) -> Result<O, Error> + Send + Sync,
O: Send + Ord + Clone;
// Provided method
fn shortest_path_many_to_many<I, OPT>(
&self,
origin_cells: I,
destination_cells: I,
options: &OPT,
) -> Result<H3CellMap<Vec<Path<W>>>, Error>
where I: IntoIterator,
I::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync { ... }
}
Expand description
Variant of the ShortestPath
trait routing from multiple
origins in parallel.
Required Methods§
Sourcefn shortest_path_many_to_many_map<I, OPT, PM, O>(
&self,
origin_cells: I,
destination_cells: I,
options: &OPT,
path_transform_fn: PM,
) -> Result<H3CellMap<Vec<O>>, Error>
fn shortest_path_many_to_many_map<I, OPT, PM, O>( &self, origin_cells: I, destination_cells: I, options: &OPT, path_transform_fn: PM, ) -> Result<H3CellMap<Vec<O>>, Error>
Returns found paths, transformed by the path_map_fn
and keyed by the
origin cell.
path_transform_fn
can be used to directly convert the paths to a less memory intensive
type.
All cells must be in the h3 resolution of the graph.
Provided Methods§
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.