Struct traitgraph::interface::Neighbor
source · [−]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: EdgeIndexThe edge used to reach the neighboring node.
node_id: NodeIndexThe neighboring node.
Trait Implementations
sourceimpl<NodeIndex: PartialEq, EdgeIndex: PartialEq> PartialEq<Neighbor<NodeIndex, EdgeIndex>> for Neighbor<NodeIndex, EdgeIndex>
impl<NodeIndex: PartialEq, EdgeIndex: PartialEq> PartialEq<Neighbor<NodeIndex, EdgeIndex>> for Neighbor<NodeIndex, EdgeIndex>
impl<NodeIndex: Eq, EdgeIndex: Eq> Eq for Neighbor<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> StructuralEq for Neighbor<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> StructuralPartialEq for Neighbor<NodeIndex, EdgeIndex>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.