pub struct NeighborInfo<'a, N, E> {
pub id: NodeId,
pub node_data: &'a N,
pub edge_data: &'a E,
}Expand description
A neighbour together with its node data and the connecting edge data.
Returned by attributed_neighbors.
Fields§
§id: NodeIdThe neighbour’s id.
node_data: &'a NReference to the neighbour’s node data.
edge_data: &'a EReference to the edge data connecting source → neighbour.
Trait Implementations§
Auto Trait Implementations§
impl<'a, N, E> Freeze for NeighborInfo<'a, N, E>
impl<'a, N, E> RefUnwindSafe for NeighborInfo<'a, N, E>where
N: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, N, E> Send for NeighborInfo<'a, N, E>
impl<'a, N, E> Sync for NeighborInfo<'a, N, E>
impl<'a, N, E> Unpin for NeighborInfo<'a, N, E>
impl<'a, N, E> UnsafeUnpin for NeighborInfo<'a, N, E>
impl<'a, N, E> UnwindSafe for NeighborInfo<'a, N, E>where
N: RefUnwindSafe,
E: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more