Module poloto::iter[][src]

Contains the DoubleIterator trait and three different implementers of it.

Structs

BufferIter

Created by PlotIterator::buffer_iter

FileBuffer

PlotIterator provides two ways to create a DoubleIterator. A third option is to use the iterator only once, but instead of storing in memory, we use a file as a buffer.

FileBufferRead

Iterate over the plots that were stored to a file.

NoBufferIter

Created by PlotIterator::buffer_iter

Traits

DoubleIterator

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.

PlotIterator

Trait that is implemented for all iterators through a blanket impl.

Functions

buffer_iter

Create a DoubleIterator that uses an iterator just once, and stores the plots in a Vec for the second iteration.

file_buffer

Create a DoubleIterator that uses a file buffer.

twice_iter

Create a DoubleIterator that uses an iterator twice by cloning it once.