pub enum Walked<N> {
Closed,
Open,
Revisited(N),
}Expand description
How a walk ended.
Variants§
Closed
next led back to the start: the chain is closed.
Open
next said there is nothing after the last node: the chain is open.
Revisited(N)
next led to this node, walked before and not the start: the chain
runs into a loop not through where it started.
Trait Implementations§
impl<N: Copy> Copy for Walked<N>
impl<N: Eq> Eq for Walked<N>
impl<N: PartialEq> StructuralPartialEq for Walked<N>
Auto Trait Implementations§
impl<N> Freeze for Walked<N>where
N: Freeze,
impl<N> RefUnwindSafe for Walked<N>where
N: RefUnwindSafe,
impl<N> Send for Walked<N>where
N: Send,
impl<N> Sync for Walked<N>where
N: Sync,
impl<N> Unpin for Walked<N>where
N: Unpin,
impl<N> UnsafeUnpin for Walked<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for Walked<N>where
N: UnwindSafe,
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