pub trait GetSample {
type Sample: Sized;
// Required method
fn get_sample(&self, index: usize) -> Self::Sample;
}
Expand description
Return a sample from the dataset at a given index.
Required Associated Types§
Required Methods§
Sourcefn get_sample(&self, index: usize) -> Self::Sample
fn get_sample(&self, index: usize) -> Self::Sample
Return the dataset sample corresponding to the index.