pub trait SelectionAlgorithm {
// Required methods
fn new() -> Self;
fn next(&self, key: &[u8]) -> u64;
}
Expand description
SelectionAlgorithm is the interface to implement selection algorithms.
All std::hash::Hasher + Default can be used directly as a selection algorithm.
Required Methods§
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.