pub trait KeyGenerator<K, I>:
Send
+ Sync
+ 'staticwhere
I: TuneInputs,{
// Required method
fn generate(&self, inputs: &<I as TuneInputs>::At<'_>) -> K;
}Expand description
Produces an autotune key from a borrowed view of the tuning inputs.
Required Methods§
Sourcefn generate(&self, inputs: &<I as TuneInputs>::At<'_>) -> K
fn generate(&self, inputs: &<I as TuneInputs>::At<'_>) -> K
Generate a key from a set of inputs.
Implementors§
impl<K, I, Func> KeyGenerator<K, I> for Func
Any for<'a> Fn(&I::At<'a>) -> K is a KeyGenerator.