Skip to main content

Evictor

Type Alias Evictor 

Source
pub type Evictor<'i> = dyn FnMut() -> Result<(), AutotuneError> + Send + 'i;
Expand description

An Eviction bound to one key and the reference inputs of one tune: what a benchmark loop calls before each sample.

FnMut rather than Fn because the loop lends it out exclusively: the closure holds the inputs, which are only Send, and a shared borrow would need them Sync to reach the device thread the samples are launched from.