pub struct NeighborRef<'a> {
pub node: &'a GraphNode,
pub edge: &'a GraphEdge,
}Expand description
A neighbor node together with the edge that connects it.
Fields§
§node: &'a GraphNodeThe neighboring node.
edge: &'a GraphEdgeThe connecting edge (direction implied by the edge’s from/to fields).
Trait Implementations§
Source§impl<'a> Clone for NeighborRef<'a>
impl<'a> Clone for NeighborRef<'a>
Source§fn clone(&self) -> NeighborRef<'a>
fn clone(&self) -> NeighborRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for NeighborRef<'a>
impl<'a> RefUnwindSafe for NeighborRef<'a>
impl<'a> Send for NeighborRef<'a>
impl<'a> Sync for NeighborRef<'a>
impl<'a> Unpin for NeighborRef<'a>
impl<'a> UnsafeUnpin for NeighborRef<'a>
impl<'a> UnwindSafe for NeighborRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more