Trait flatk::ViewIterator [−][src]
pub trait ViewIterator<'a> {
type Item;
type Iter: Iterator<Item = Self::Item>;
fn view_iter(&'a self) -> Self::Iter;
}
Expand description
A convenience trait to allow generic implementations to call an iterator over the view. This
is necessary because the View
trait has an explicit lifetime parameter, which makes it
difficult or impossible to use in generic functions.
For instance it becomes difficult/impossible to impose constraints like Set
on View::Type
.