pub struct Adaptive;Expand description
Run in parallel only for inputs at or above ADAPTIVE_PARALLEL_THRESHOLD.
Trait Implementations§
impl Copy for Adaptive
Source§impl ExecutionPolicy for Adaptive
impl ExecutionPolicy for Adaptive
Source§fn parallelize(len: usize) -> bool
fn parallelize(len: usize) -> bool
Return
true if an operation over len elements should run in parallel.Source§fn parallelize_chunks(len: usize, chunks: usize) -> bool
fn parallelize_chunks(len: usize, chunks: usize) -> bool
Return
true if an operation over len elements, partitioned into
chunks logical chunks, should run in parallel. Read moreSource§fn parallelize_work(len: usize, chunks: usize, bytes: usize) -> bool
fn parallelize_work(len: usize, chunks: usize, bytes: usize) -> bool
Return
true if an operation over len elements, scheduled as chunks
tasks and moving bytes in total, should run in parallel. Read moreSource§fn parallelize_pair() -> bool
fn parallelize_pair() -> bool
Return
true if a fixed two-branch operation should run in parallel.Auto Trait Implementations§
impl Freeze for Adaptive
impl RefUnwindSafe for Adaptive
impl Send for Adaptive
impl Sync for Adaptive
impl Unpin for Adaptive
impl UnsafeUnpin for Adaptive
impl UnwindSafe for Adaptive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more