Trait utils::iter::sample_on::SampleOn [] [src]

pub trait SampleOn: Sized + Iterator {
    fn sample_on<O: Iterator>(self, other: O) -> Items<Self, O> { ... }
}

Sample from the current iterator every time an iteration occurs on another iterator. This is primarily used for binding an iterator to another timed iterator. i.e. (0..1000).sample_on(Fps::new(60.0)).

Provided Methods

Implementors