translate_function_buckets

Function translate_function_buckets 

Source
pub fn translate_function_buckets<'a, C, T, F, G>(
    pool: &ThreadPool,
    func_translator_builder: F,
    translate_fn: G,
    progress: Option<ProgressContext>,
    buckets: &[FunctionBucket<'a>],
) -> Result<Vec<C>, CompileError>
where T: FuncTranslator, C: CompiledFunction + Send + Sync, F: Fn() -> T + Send + Sync + Copy, G: Fn(&mut T, &LocalFunctionIndex, &FunctionBodyData<'_>) -> Result<C, CompileError> + Send + Sync + Copy,
Expand description

Compile function buckets largest-first via the channel (instead of Rayon’s par_iter).