[][src]Struct daggy::walker::IterWeights

pub struct IterWeights<'a, G: 'a, Ix, W> { /* fields omitted */ }

An iterator yielding weights associated with the index pairs produced by its internal walker and graph.

Implementations

impl<'a, G, Ix, W> IterWeights<'a, G, Ix, W>[src]

pub fn edges(self) -> IterEdgeWeights<'a, G, Ix, W>

Notable traits for IterEdgeWeights<'a, G, Ix, W>

impl<'a, G, Ix, W> Iterator for IterEdgeWeights<'a, G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>,
    G: Index<EdgeIndex<Ix>>, 
type Item = &'a <G as Index<EdgeIndex<Ix>>>::Output;
[src]

Convert to an iterator yielding only the edge weights.

pub fn nodes(self) -> IterNodeWeights<'a, G, Ix, W>

Notable traits for IterNodeWeights<'a, G, Ix, W>

impl<'a, G, Ix, W> Iterator for IterNodeWeights<'a, G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>,
    G: Index<NodeIndex<Ix>>, 
type Item = &'a <G as Index<NodeIndex<Ix>>>::Output;
[src]

Convert to an iterator yielding only the node weights.

Trait Implementations

impl<'a, G: Clone + 'a, Ix: Clone, W: Clone> Clone for IterWeights<'a, G, Ix, W>[src]

impl<'a, G: Debug + 'a, Ix: Debug, W: Debug> Debug for IterWeights<'a, G, Ix, W>[src]

impl<'a, G, Ix, W> Iterator for IterWeights<'a, G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>,
    G: Index<EdgeIndex<Ix>>,
    G: Index<NodeIndex<Ix>>, 
[src]

type Item = (&'a <G as Index<EdgeIndex<Ix>>>::Output, &'a <G as Index<NodeIndex<Ix>>>::Output)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, G, Ix, W> RefUnwindSafe for IterWeights<'a, G, Ix, W> where
    G: RefUnwindSafe,
    Ix: RefUnwindSafe,
    W: RefUnwindSafe

impl<'a, G, Ix, W> Send for IterWeights<'a, G, Ix, W> where
    G: Sync,
    Ix: Send,
    W: Send

impl<'a, G, Ix, W> Sync for IterWeights<'a, G, Ix, W> where
    G: Sync,
    Ix: Sync,
    W: Sync

impl<'a, G, Ix, W> Unpin for IterWeights<'a, G, Ix, W> where
    Ix: Unpin,
    W: Unpin

impl<'a, G, Ix, W> UnwindSafe for IterWeights<'a, G, Ix, W> where
    G: RefUnwindSafe,
    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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.