[][src]Struct math::histogram::HistogramIter

pub struct HistogramIter<'a, T> where
    T: PartialOrd + NumAssign + NumOps + FromPrimitive + ToPrimitive + Copy + Display
{ /* fields omitted */ }

An iterator that iterates through the entries of the histogram

use math::{histogram::Histogram, traits::ToIterator};
let histogram = Histogram::new(Some(&vec![4., 0., 3.5]), 2, 0., 7.).unwrap();
let mut iter = histogram.to_iter();
assert_eq!(Some((0., 3.5, 1)), iter.next());
assert_eq!(Some((3.5, 7., 2)), iter.next());
assert_eq!(None, iter.next());

Trait Implementations

impl<'a, T> Iterator for HistogramIter<'a, T> where
    T: PartialOrd + NumAssign + NumOps + FromPrimitive + ToPrimitive + Copy + Display
[src]

type Item = HistogramEntry<T>

The type of the elements being iterated over.

impl<'a, T> ToIterator<'a, HistogramIter<'a, T>, (T, T, usize)> for Histogram<T> where
    T: PartialOrd + NumAssign + NumOps + FromPrimitive + ToPrimitive + Copy + Display
[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for HistogramIter<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for HistogramIter<'a, T> where
    T: Sync

impl<'a, T> Sync for HistogramIter<'a, T> where
    T: Sync

impl<'a, T> Unpin for HistogramIter<'a, T>

impl<'a, T> UnwindSafe for HistogramIter<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I, V> IntoBinnedIntervalIter<V> for I where
    I: Iterator,
    V: Copy + Num + FromPrimitive + PartialOrd<V>, 
[src]

impl<I> IntoConcatIter for I where
    I: Iterator
[src]

impl<I> IntoFlatZipIter<I> for I where
    I: Iterator
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,