Struct hdrsample::iterators::linear::Iter [] [src]

pub struct Iter<'a, T: 'a + Num + ToPrimitive + Copy> {
    // some fields omitted
}

An iterator that will yield at fixed-size steps through the histogram's value range.

Methods

impl<'a, T: 'a + Num + ToPrimitive + Copy> Iter<'a, T>
[src]

fn new(hist: &'a Histogram<T>, valueUnitsPerBucket: i64) -> HistogramIterator<'a, T, Iter<'a, T>>

Construct a new linear iterator. See Histogram::iter_linear for details.

Trait Implementations

impl<'a, T: 'a + Num + ToPrimitive + Copy> PickyIterator<T> for Iter<'a, T>
[src]

fn pick(&mut self, index: usize, _: i64) -> bool

should an item be yielded for the given index?

fn more(&mut self, index: usize) -> bool

should we keep iterating even though all future indices are zeros?