Skip to main content

ScopeExecutor

Trait ScopeExecutor 

Source
pub trait ScopeExecutor {
    // Required method
    fn execute_in_scope<F, R>(&self, f: F) -> R
       where F: FnOnce(&Scope<'_>) -> R + Send,
             R: Send;
}
Expand description

Helper trait for scope-based operations

Required Methods§

Source

fn execute_in_scope<F, R>(&self, f: F) -> R
where F: FnOnce(&Scope<'_>) -> R + Send, R: Send,

Execute a function within a Rayon scope

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§