Struct h3ron_graph::algorithm::path::Path
source · pub struct Path<W> {
pub origin_cell: H3Cell,
pub destination_cell: H3Cell,
pub cost: W,
pub directed_edge_path: DirectedEdgePath,
}Expand description
Path describes a path between a cell and another with an associated cost
Fields§
§origin_cell: H3CellThe cell the path starts at.
This is the cell the path was calculated from. The actual start cell of the
path may differ in case origin_cell is not directly connected to the graph
destination_cell: H3CellThe cell the path ends at.
This is the cell the path was calculated to. The actual end cell of the
path may differ in case destination_cell is not directly connected to the graph
cost: W§directed_edge_path: DirectedEdgePathdescribes the path
Implementations§
Trait Implementations§
source§impl<'de, W> Deserialize<'de> for Path<W>where
W: Deserialize<'de>,
impl<'de, W> Deserialize<'de> for Path<W>where
W: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<W> Ord for Path<W>where
W: Ord,
impl<W> Ord for Path<W>where
W: Ord,
order by cost, origin index and destination_index.
This ordering can used to bring Vecs of routes in a deterministic order to make them
comparable
source§impl<W: PartialEq> PartialEq<Path<W>> for Path<W>
impl<W: PartialEq> PartialEq<Path<W>> for Path<W>
source§impl<W> PartialOrd<Path<W>> for Path<W>where
W: Ord,
impl<W> PartialOrd<Path<W>> for Path<W>where
W: Ord,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<W> TryFrom<(DirectedEdgePath, W)> for Path<W>
impl<W> TryFrom<(DirectedEdgePath, W)> for Path<W>
impl<W: Eq> Eq for Path<W>
impl<W> StructuralEq for Path<W>
impl<W> StructuralPartialEq for Path<W>
Auto Trait Implementations§
impl<W> RefUnwindSafe for Path<W>where
W: RefUnwindSafe,
impl<W> Send for Path<W>where
W: Send,
impl<W> Sync for Path<W>where
W: Sync,
impl<W> Unpin for Path<W>where
W: Unpin,
impl<W> UnwindSafe for Path<W>where
W: UnwindSafe,
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.