pub struct Id<N> { /* private fields */ }Expand description
A node in a graph.
Handed out by Graph::add and by Graph::id_of, and taken by every call
that starts somewhere. The type parameter is what makes a wrong hop a compile
error, so it is not a u64 you can build by hand.
Trait Implementations§
impl<N> Copy for Id<N>
impl<N> Eq for Id<N>
Auto Trait Implementations§
impl<N> Freeze for Id<N>
impl<N> RefUnwindSafe for Id<N>
impl<N> Send for Id<N>
impl<N> Sync for Id<N>
impl<N> Unpin for Id<N>
impl<N> UnsafeUnpin for Id<N>
impl<N> UnwindSafe for Id<N>
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