pub trait BoundsGenerator<K, I: TuneInputs, B: TimeBound>:
Send
+ Sync
+ 'static {
// Required method
fn generate<'a>(&self, key: &K, inputs: &I::At<'a>) -> Bounds<B>;
}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, B: TimeBound> BoundsGenerator<K, A, B> for Func
Fn(&K, &A) -> Bounds<B> acts as a BoundsGenerator when A is an owned type. For
multi-input kernels, A is a tuple that the closure destructures internally.