Rust Rayon ThreadPool: ‘Cannot borrow as mutable, as it is a captured variable in a Fn closure’
I am trying to learn Rust’s Rayon library by making a simple vector addition function. My current code is this, assuming a
, b
and c
are vectors initialized to the same length, c
is mutable and num_threads
is a usize
variable: