Trait Sampler

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

Every Sampler is iterable and has a length.

Required Methods§

Source

fn new(data_source_len: usize) -> Self

Create a new sampler form the dataset length.

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§