pub trait IsParArray: IsArray {
// Required method
fn mut_slice(&mut self) -> &mut [Self::Item];
}
Expand description
Extension of array_init::IsArray
that includes method to convert the array to a mutable slice.
&mut [T]
implements parallel iterator so this allows us to write our elements in parallel without having to explicitly pass a *mut T
across threads.
Required Methods§
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.