Struct h3ron_graph::graph::modifiers::ExcludeCells [−][src]
pub struct ExcludeCells<'a, G, W> { /* fields omitted */ }Expand description
wrapper to exclude cells from traversal during routing
Implementations
impl<'a, G, W> ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<'a, G, W> ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
Trait Implementations
impl<'a, G, W> GetEdge for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<'a, G, W> GetEdge for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
type WeightType = G::WeightType
impl<'a, G, W> GetNodeType for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<'a, G, W> GetNodeType for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<'a, G, W> HasH3Resolution for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<'a, G, W> HasH3Resolution for ExcludeCells<'a, G, W> where
G: GetNodeType + GetEdge<WeightType = W> + HasH3Resolution,
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
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
Mutably borrows from an owned value. Read more
impl<G, W> DifferentialShortestPath<W> for G where
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes + Sync + ShortestPathManyToMany<W>,
impl<G, W> DifferentialShortestPath<W> for G where
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes + Sync + ShortestPathManyToMany<W>,
pub fn differential_shortest_path_map<I, OPT, PM, O>(
&Self,
I,
I,
&H3Treemap<H3Cell>,
&OPT,
PM
) -> Result<HashMap<H3Cell, ExclusionDiff<O>, RandomState, Global>, Error> where
I: IntoIterator,
OPT: ShortestPathOptions + Send + Sync,
O: Send + Ord + Clone,
PM: Fn(Path<W>) -> O + Send + Sync,
<I as IntoIterator>::Item: Borrow<H3Cell>,
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,
pub fn gap_bridged_corresponding_node_filtered<F>(
&Self,
&H3Cell,
u32,
F
) -> GapBridgedCellNode where
F: Fn(&H3Cell, &NodeType) -> bool + Send + Sync + Copy,
fn gap_bridged_corresponding_node(
&self,
cell: &H3Cell,
num_gap_cells_to_graph: u32
) -> GapBridgedCellNode
fn gap_bridged_corresponding_node(
&self,
cell: &H3Cell,
num_gap_cells_to_graph: u32
) -> GapBridgedCellNode
get the closest corresponding node in the graph to the given cell Read more
impl<W, G> ShortestPath<W> for G where
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
impl<W, G> ShortestPath<W> for G where
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
pub fn shortest_path<I, OPT>(
&Self,
H3Cell,
I,
&OPT
) -> Result<Vec<Path<W>, Global>, Error> where
I: IntoIterator,
OPT: ShortestPathOptions,
<I as IntoIterator>::Item: Borrow<H3Cell>,
impl<W, G> ShortestPathManyToMany<W> for G where
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes + Sync,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
impl<W, G> ShortestPathManyToMany<W> for G where
G: GetEdge<WeightType = W> + GetNodeType + HasH3Resolution + GetGapBridgedCellNodes + Sync,
W: PartialOrd<W> + PartialEq<W> + Add<W> + Copy + Send + Ord + Zero + Sync,
pub fn shortest_path_many_to_many_map<I, OPT, PM, O>(
&Self,
I,
I,
&OPT,
PM
) -> Result<HashMap<H3Cell, Vec<O, Global>, RandomState, Global>, Error> where
I: IntoIterator,
OPT: ShortestPathOptions + Send + Sync,
PM: Fn(Path<W>) -> O + Send + Sync,
O: Send + Ord + Clone,
<I as IntoIterator>::Item: Borrow<H3Cell>,
pub fn shortest_path_many_to_many_map<I, OPT, PM, O>(
&Self,
I,
I,
&OPT,
PM
) -> Result<HashMap<H3Cell, Vec<O, Global>, RandomState, Global>, Error> where
I: IntoIterator,
OPT: ShortestPathOptions + Send + Sync,
PM: Fn(Path<W>) -> O + Send + Sync,
O: Send + Ord + Clone,
<I as IntoIterator>::Item: Borrow<H3Cell>,
Returns found paths, transformed by the path_map_fn and keyed by the
origin cell. Read more