pub trait SelectionSamplingSearch: Iterator {
    // Provided method
    fn sample_search<'a, T, R, FM, FI, FC>(
        self,
        sample_size: usize,
        random: Arc<dyn Random + Sync + Send, Global>,
        map_fn: FM,
        index_fn: FI,
        compare_fn: FC
    ) -> Option<R>
       where Self: Sized + Clone + Iterator<Item = T> + 'a,
             T: 'a,
             R: 'a,
             FM: FnMut(T) -> R,
             FI: Fn(&T) -> i32,
             FC: Fn(&R, &R) -> bool { ... }
}
Expand description

Provides way to search using selection sampling algorithm on iterator where elements have ordered index values.

Provided Methods§

Searches using selection sampling algorithm.

Implementors§