pub struct Neighbor<'a, W> {
pub edge_id: usize,
pub node: usize,
pub weight: &'a W,
}Expand description
One adjacency: the edge taken and the neighbor reached.
Fields§
§edge_id: usizeThe traversed edge id.
node: usizeThe neighbor node index.
weight: &'a WThe traversed edge weight.
Trait Implementations§
impl<'a, W: Copy> Copy for Neighbor<'a, W>
impl<'a, W: Eq> Eq for Neighbor<'a, W>
Source§impl<'a, W: PartialEq> PartialEq for Neighbor<'a, W>
impl<'a, W: PartialEq> PartialEq for Neighbor<'a, W>
impl<'a, W: PartialEq> StructuralPartialEq for Neighbor<'a, W>
Auto Trait Implementations§
impl<'a, W> Freeze for Neighbor<'a, W>
impl<'a, W> RefUnwindSafe for Neighbor<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Neighbor<'a, W>where
W: Sync,
impl<'a, W> Sync for Neighbor<'a, W>where
W: Sync,
impl<'a, W> Unpin for Neighbor<'a, W>
impl<'a, W> UnsafeUnpin for Neighbor<'a, W>
impl<'a, W> UnwindSafe for Neighbor<'a, W>where
W: RefUnwindSafe,
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