pub struct Peekable<G, W> where
W: Walker<G>, { /* private fields */ }
Expand description
A walker that has a .peek(&graph)
method that returns an optional next neighbor.
Implementations
Trait Implementations
Auto Trait Implementations
impl<G, W> RefUnwindSafe for Peekable<G, W> where
G: RefUnwindSafe,
W: RefUnwindSafe,
<W as Walker<G>>::Item: RefUnwindSafe,
impl<G, W> Send for Peekable<G, W> where
G: Send,
W: Send,
<W as Walker<G>>::Item: Send,
impl<G, W> Sync for Peekable<G, W> where
G: Sync,
W: Sync,
<W as Walker<G>>::Item: Sync,
impl<G, W> Unpin for Peekable<G, W> where
G: Unpin,
W: Unpin,
<W as Walker<G>>::Item: Unpin,
impl<G, W> UnwindSafe for Peekable<G, W> where
G: UnwindSafe,
W: UnwindSafe,
<W as Walker<G>>::Item: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more