pub trait Sampler: Len + IntoIterator<Item = usize> + Copy {
    fn new(data_source_len: usize) -> Self;
}
Expand description

Every Sampler is iterable and has a length.

Required Methods

Create a new sampler form the dataset length.

Implementors