IterDomain

Trait IterDomain 

Source
pub trait IterDomain<Idx = usize>
where Idx: RawIndex,
{ type Store<_T>: RawDomain<Key = VertexId<Idx>>; type Iter<'a, _T>: Iterator<Item = &'a _T> where _T: 'a, Self: 'a; // Required method fn iter(&self) -> Self::Iter<'_, <Self::Store<Idx> as RawDomain>::Key>; }
Expand description

The IterDomain trait defines the base interface for creating an interator over a domain of vertices.

Required Associated Types§

Source

type Store<_T>: RawDomain<Key = VertexId<Idx>>

Source

type Iter<'a, _T>: Iterator<Item = &'a _T> where _T: 'a, Self: 'a

Required Methods§

Source

fn iter(&self) -> Self::Iter<'_, <Self::Store<Idx> as RawDomain>::Key>

returns an iterator over the vertices in the store.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§