pub trait KeyGenerator<K, I: TuneInputs>:
Send
+ Sync
+ 'static {
// Required method
fn generate(&self, inputs: &I::At<'_>) -> K;
}Expand description
Produces an autotune key from a borrowed view of the tuning inputs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<K, I, Func> KeyGenerator<K, I> for Func
Any for<'a> Fn(&I::At<'a>) -> K is a KeyGenerator.