Struct transit_grid::graphs::TopoNode
source · pub struct TopoNode {
pub id: NodeIndex,
pub node_id: NodeId,
}
Expand description
Represents a node in the TopologyGraph
.
Each node is identified by a NodeIndex
(which represents the node’s position in the petgraph)
and a NodeId
(a custom identifier).
Fields
id: NodeIndex
- The index of the node in the petgraph.node_id: NodeId
- The custom identifier of the node.
Fields§
§id: NodeIndex
The index of the node in the petgraph.
node_id: NodeId
The custom identifier of the node.
Trait Implementations§
source§impl Ord for TopoNode
impl Ord for TopoNode
source§impl PartialEq<TopoNode> for TopoNode
impl PartialEq<TopoNode> for TopoNode
source§impl PartialOrd<TopoNode> for TopoNode
impl PartialOrd<TopoNode> for TopoNode
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 moreimpl Copy for TopoNode
impl Eq for TopoNode
impl StructuralEq for TopoNode
impl StructuralPartialEq for TopoNode
Auto Trait Implementations§
impl RefUnwindSafe for TopoNode
impl Send for TopoNode
impl Sync for TopoNode
impl Unpin for TopoNode
impl UnwindSafe for TopoNode
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.