[][src]Struct daggy::walker::Peekable

pub struct Peekable<G, Ix, W> where
    Ix: IndexType
{ /* fields omitted */ }

A walker that has a .peek(&graph) method that returns an optional next neighbor.

Implementations

impl<G, Ix, W> Peekable<G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>, 
[src]

pub fn peek(&mut self, graph: &G) -> Option<IndexPair<Ix>>[src]

The edge node index pair of the neighbor at the next step in our walk of the given graph.

pub fn peek_edge(&mut self, graph: &G) -> Option<EdgeIndex<Ix>>[src]

The edge index of the neighbor at the next step in our walk of the given graph.

pub fn peek_node(&mut self, graph: &G) -> Option<NodeIndex<Ix>>[src]

The node index of the neighbor at the next step in our walk of the given graph.

Trait Implementations

impl<G: Clone, Ix: Clone, W: Clone> Clone for Peekable<G, Ix, W> where
    Ix: IndexType
[src]

impl<G: Debug, Ix: Debug, W: Debug> Debug for Peekable<G, Ix, W> where
    Ix: IndexType
[src]

impl<G, Ix, W> Walker<G> for Peekable<G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>, 
[src]

type Index = Ix

The unsigned integer type used for node and edge indices.

Auto Trait Implementations

impl<G, Ix, W> RefUnwindSafe for Peekable<G, Ix, W> where
    G: RefUnwindSafe,
    Ix: RefUnwindSafe,
    W: RefUnwindSafe

impl<G, Ix, W> Send for Peekable<G, Ix, W> where
    G: Send,
    Ix: Send,
    W: Send

impl<G, Ix, W> Sync for Peekable<G, Ix, W> where
    G: Sync,
    Ix: Sync,
    W: Sync

impl<G, Ix, W> Unpin for Peekable<G, Ix, W> where
    G: Unpin,
    Ix: Unpin,
    W: Unpin

impl<G, Ix, W> UnwindSafe for Peekable<G, Ix, W> where
    G: UnwindSafe,
    Ix: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.