Struct rayon::Configuration
[−]
[src]
pub struct Configuration { // some fields omitted }
Contains the rayon thread pool configuration.
Methods
impl Configuration
[src]
fn new() -> Configuration
Creates and return a valid rayon thread pool configuration, but does not initialize it.
fn num_threads(&self) -> Option<usize>
Get the number of threads that will be used for the thread
pool. See set_num_threads
for more information.
fn set_num_threads(self, num_threads: usize) -> Configuration
Set the number of threads to be used in the rayon threadpool.
The argument num_threads
must not be zero. If you do not
call this function, rayon will select a suitable default
(currently, the default is one thread per CPU core).
Trait Implementations
impl Debug for Configuration
[src]
impl Clone for Configuration
[src]
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more