Trait internode::Neighbors

source ·
pub trait Neighbors: Sized {
    type Iter<'a>: 'a + Iterator<Item = Internode<Self>>
       where Self: 'a;

    // Required methods
    fn outgoing(&self) -> Self::Iter<'_>;
    fn incoming(&self) -> Self::Iter<'_>;
}
Expand description

Defines neighbors of a node.

Required Associated Types§

source

type Iter<'a>: 'a + Iterator<Item = Internode<Self>> where Self: 'a

Required Methods§

source

fn outgoing(&self) -> Self::Iter<'_>

Returns an iterator over the outgoing neighbors of this node.

source

fn incoming(&self) -> Self::Iter<'_>

Returns an iterator over the incoming neighbors of this node.

Implementors§