//! The [`Sampler`] trait.
/// Produces an ordered sequence of indices for one full pass over a dataset.
pubtraitSampler: Send + 'static {/// Return the index sequence for one epoch over a dataset of `dataset_len`
/// items.
fnindices(&mutself, dataset_len:usize)->Vec<usize>;/// Number of indices [`indices`](Self::indices) returns for a dataset of
/// `dataset_len` items, without advancing the sampler.
////// Defaults to `dataset_len`; override it for samplers that subsample,
/// shard, or oversample.
fnlen(&self, dataset_len:usize)->usize{
dataset_len
}}