Struct traitgraph::interface::Neighbor [−][src]
pub struct Neighbor<NodeIndex, EdgeIndex> {
pub edge_id: EdgeIndex,
pub node_id: NodeIndex,
}
Expand description
The neighbor of a node, given as the edge used to reach the neighbor node as well as the neighbor node itself.
Fields
edge_id: EdgeIndex
The edge used to reach the neighboring node.
node_id: NodeIndex
The neighboring node.
Trait Implementations
Auto Trait Implementations
impl<NodeIndex, EdgeIndex> RefUnwindSafe for Neighbor<NodeIndex, EdgeIndex> where
EdgeIndex: RefUnwindSafe,
NodeIndex: RefUnwindSafe,
impl<NodeIndex, EdgeIndex> Send for Neighbor<NodeIndex, EdgeIndex> where
EdgeIndex: Send,
NodeIndex: Send,
impl<NodeIndex, EdgeIndex> Sync for Neighbor<NodeIndex, EdgeIndex> where
EdgeIndex: Sync,
NodeIndex: Sync,
impl<NodeIndex, EdgeIndex> Unpin for Neighbor<NodeIndex, EdgeIndex> where
EdgeIndex: Unpin,
NodeIndex: Unpin,
impl<NodeIndex, EdgeIndex> UnwindSafe for Neighbor<NodeIndex, EdgeIndex> where
EdgeIndex: UnwindSafe,
NodeIndex: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.