Trait SampleOn

Source
pub trait SampleOn: Sized + Iterator {
    // Provided method
    fn sample_on<O: Iterator>(self, other: O) -> Items<Self, O>  { ... }
}
Expand description

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§

Source

fn sample_on<O: Iterator>(self, other: O) -> Items<Self, O>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§