Trait poloto::iter::DoubleIterator[][src]

pub trait DoubleIterator: Iterator {
    type Next: Iterator<Item = Self::Item>;
    fn finish_first(self) -> Self::Next;
}

The trait that plot functions accept. All plots must be iterated through twice. Once to find the right scale to fit all the plots in the graph. And a second time to scale all the plots by the scale we found on the first iteration. A DoubleIterator is itself an iterator that represents its first iteration. Once that is done, the user can call finish_first to produce the second iterator.

Associated Types

type Next: Iterator<Item = Self::Item>[src]

Loading content...

Required methods

fn finish_first(self) -> Self::Next[src]

Loading content...

Implementors

impl<I: Iterator> DoubleIterator for BufferIter<I> where
    I::Item: Copy
[src]

type Next = IntoIter<I::Item>

impl<I: Iterator> DoubleIterator for NoBufferIter<I> where
    I::Item: Copy
[src]

type Next = I

impl<P: AsRef<Path>, I: Iterator<Item = [f64; 2]>> DoubleIterator for FileBuffer<P, I>[src]

type Next = FileBufferRead

Loading content...