Struct transit_grid::graphs::TopoEdge
source · pub struct TopoEdge {
pub id: EdgeIndex,
pub from: NodeId,
pub to: NodeId,
pub edge_id: EdgeId,
}
Expand description
Represents an edge in the TopologyGraph
.
Each edge is identified by an EdgeIndex
(which represents the edge’s position in the petgraph),
a from
and to
NodeId
(representing the nodes that the edge connects),
and an EdgeId
(a custom identifier).
Fields
id: EdgeIndex
- The index of the edge in the petgraph.from: NodeId
- The custom identifier of the node where the edge originates.to: NodeId
- The custom identifier of the node where the edge ends.edge_id: EdgeId
- The custom identifier of the edge.
Fields§
§id: EdgeIndex
The index of the edge in the petgraph.
from: NodeId
The custom identifier of the node where the edge originates.
to: NodeId
The custom identifier of the node where the edge ends.
edge_id: EdgeId
The custom identifier of the edge.
Trait Implementations§
source§impl PartialEq<TopoEdge> for TopoEdge
impl PartialEq<TopoEdge> for TopoEdge
impl Eq for TopoEdge
impl StructuralEq for TopoEdge
impl StructuralPartialEq for TopoEdge
Auto Trait Implementations§
impl RefUnwindSafe for TopoEdge
impl Send for TopoEdge
impl Sync for TopoEdge
impl Unpin for TopoEdge
impl UnwindSafe for TopoEdge
Blanket Implementations§
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.