pub trait BoundsGenerator<K, I>:
Send
+ Sync
+ 'staticwhere
I: TuneInputs,{
// Required method
fn generate<'a>(
&self,
key: &K,
inputs: &<I as TuneInputs>::At<'a>,
) -> Bounds;
}Expand description
Produces a set of AutotuneBounds for a given key and reference inputs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<K, Func, A> BoundsGenerator<K, A> for Func
Fn(&K, &A) -> Bounds acts as a BoundsGenerator when A is an owned type. For
multi-input kernels, A is a tuple that the closure destructures internally.