Struct h3ron_graph::graph::modifiers::ExcludeCells
source · [−]pub struct ExcludeCells<'a, G, W> { /* private fields */ }Expand description
wrapper to exclude cells from traversal during routing
Implementations
sourceimpl<'a, G, W> ExcludeCells<'a, G, W>where
G: GetCellNode + GetCellEdges<EdgeWeightType = W> + HasH3Resolution,
impl<'a, G, W> ExcludeCells<'a, G, W>where
G: GetCellNode + GetCellEdges<EdgeWeightType = W> + HasH3Resolution,
Trait Implementations
sourceimpl<'a, G, W> GetCellEdges for ExcludeCells<'a, G, W>where
G: GetCellEdges<EdgeWeightType = W>,
impl<'a, G, W> GetCellEdges for ExcludeCells<'a, G, W>where
G: GetCellEdges<EdgeWeightType = W>,
type EdgeWeightType = <G as GetCellEdges>::EdgeWeightType
sourcefn get_edges_originating_from(
&self,
cell: &H3Cell
) -> Result<Vec<(H3DirectedEdge, EdgeWeight<'_, Self::EdgeWeightType>)>, Error>
fn get_edges_originating_from(
&self,
cell: &H3Cell
) -> Result<Vec<(H3DirectedEdge, EdgeWeight<'_, Self::EdgeWeightType>)>, Error>
get all edges and their values originating from cell
cellsourceimpl<'a, G, W> GetCellNode for ExcludeCells<'a, G, W>where
G: GetCellNode,
impl<'a, G, W> GetCellNode for ExcludeCells<'a, G, W>where
G: GetCellNode,
fn get_cell_node(&self, cell: &H3Cell) -> Option<NodeType>
sourceimpl<'a, G, W> HasH3Resolution for ExcludeCells<'a, G, W>where
G: HasH3Resolution,
impl<'a, G, W> HasH3Resolution for ExcludeCells<'a, G, W>where
G: HasH3Resolution,
sourcefn h3_resolution(&self) -> u8
fn h3_resolution(&self) -> u8
Gets the index resolution (0-15)
Auto Trait Implementations
impl<'a, G, W> RefUnwindSafe for ExcludeCells<'a, G, W>where
G: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, G, W> Send for ExcludeCells<'a, G, W>where
G: Sync,
W: Send,
impl<'a, G, W> Sync for ExcludeCells<'a, G, W>where
G: Sync,
W: Sync,
impl<'a, G, W> Unpin for ExcludeCells<'a, G, W>where
W: Unpin,
impl<'a, G, W> UnwindSafe for ExcludeCells<'a, G, W>where
G: RefUnwindSafe,
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<G, W> DifferentialShortestPath<W> for Gwhere
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes + Sync + ShortestPathManyToMany<W>,
impl<G, W> DifferentialShortestPath<W> for Gwhere
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes + Sync + ShortestPathManyToMany<W>,
fn differential_shortest_path_map<I, OPT, PM, O>(
&self,
origin_cells: I,
destination_cells: I,
exclude_cells: &H3Treemap<H3Cell>,
options: &OPT,
path_transform_fn: PM
) -> Result<HashMap<H3Cell, ExclusionDiff<O>, RandomState, Global>, Error>where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync,
O: Send + Ord + Clone,
PM: Fn(Path<W>) -> Result<O, Error> + Send + Sync,
fn differential_shortest_path<I, OPT>(
&self,
origin_cells: I,
destination_cells: I,
exclude_cells: &H3Treemap<H3Cell>,
options: &OPT
) -> Result<HashMap<H3Cell, ExclusionDiff<Path<W>>>, Error>where
I: IntoIterator,
I::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync,
sourceimpl<G> GetEdge for Gwhere
G: GetCellEdges,
impl<G> GetEdge for Gwhere
G: GetCellEdges,
type EdgeWeightType = <G as GetCellEdges>::EdgeWeightType
fn get_edge(
&self,
edge: &H3DirectedEdge
) -> Result<Option<EdgeWeight<'_, <G as GetEdge>::EdgeWeightType>>, Error>
sourceimpl<G> NearestGraphNodes for Gwhere
G: GetCellNode,
impl<G> NearestGraphNodes for Gwhere
G: GetCellNode,
sourcefn nearest_graph_nodes(
&self,
cell: &H3Cell,
max_distance_k: u32
) -> Result<NearestGraphNodesGetCellIter<'_, G>, Error>
fn nearest_graph_nodes(
&self,
cell: &H3Cell,
max_distance_k: u32
) -> Result<NearestGraphNodesGetCellIter<'_, G>, Error>
get an iterator over the closest corresponding nodes in the graph to the
given cell. The iterator will return all nodes with the
same, smallest
k <= max_distance_k which are part of the graph. Read moreimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<W, G> ShortestPath<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Ord + Zero,
impl<W, G> ShortestPath<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Ord + Zero,
fn shortest_path<I, OPT>(
&self,
origin_cell: H3Cell,
destination_cells: I,
options: &OPT
) -> Result<Vec<Path<W>, Global>, Error>where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions,
sourceimpl<W, G> ShortestPathManyToMany<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes + Sync,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
impl<W, G> ShortestPathManyToMany<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + GetCellNode + HasH3Resolution + NearestGraphNodes + Sync,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
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<HashMap<H3Cell, Vec<O, Global>, RandomState, Global>, Error>where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync,
PM: Fn(Path<W>) -> Result<O, Error> + Send + Sync,
O: Send + Ord + Clone,
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<HashMap<H3Cell, Vec<O, Global>, RandomState, Global>, Error>where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<H3Cell>,
OPT: ShortestPathOptions + Send + Sync,
PM: Fn(Path<W>) -> Result<O, Error> + Send + Sync,
O: Send + Ord + Clone,
Returns found paths, transformed by the
path_map_fn and keyed by the
origin cell. Read moresourceimpl<W, G> WithinWeightThreshold<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W>,
W: Zero + Ord + Copy + Add<W>,
impl<W, G> WithinWeightThreshold<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W>,
W: Zero + Ord + Copy + Add<W>,
sourceimpl<W, G> WithinWeightThresholdMany<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + WithinWeightThreshold<W> + Sync,
W: Zero + Ord + Copy + Add<W> + Send + Sync,
impl<W, G> WithinWeightThresholdMany<W> for Gwhere
G: GetCellEdges<EdgeWeightType = W> + WithinWeightThreshold<W> + Sync,
W: Zero + Ord + Copy + Add<W> + Send + Sync,
sourcefn cells_within_weight_threshold_many<I, AGG>(
&self,
origin_cells: I,
weight_threshold: W,
agg_fn: AGG
) -> Result<HashMap<H3Cell, W, RandomState, Global>, Error>where
I: IntoParallelIterator,
<I as IntoParallelIterator>::Item: Borrow<H3Cell>,
AGG: Fn(&mut W, W) + Sync,
fn cells_within_weight_threshold_many<I, AGG>(
&self,
origin_cells: I,
weight_threshold: W,
agg_fn: AGG
) -> Result<HashMap<H3Cell, W, RandomState, Global>, Error>where
I: IntoParallelIterator,
<I as IntoParallelIterator>::Item: Borrow<H3Cell>,
AGG: Fn(&mut W, W) + Sync,
Find all cells connected to the graph within a given
weight_threshold around the
given origin_cells. Read more