pub struct AdaptiveWithThreshold<const N: usize>;Expand description
Run in parallel only for inputs at or above the custom threshold N.
Trait Implementations§
Source§impl<const N: usize> Clone for AdaptiveWithThreshold<N>
impl<const N: usize> Clone for AdaptiveWithThreshold<N>
impl<const N: usize> Copy for AdaptiveWithThreshold<N>
Source§impl<const N: usize> Debug for AdaptiveWithThreshold<N>
impl<const N: usize> Debug for AdaptiveWithThreshold<N>
Source§impl<const N: usize> Default for AdaptiveWithThreshold<N>
impl<const N: usize> Default for AdaptiveWithThreshold<N>
Source§impl<const N: usize> ExecutionPolicy for AdaptiveWithThreshold<N>
impl<const N: usize> ExecutionPolicy for AdaptiveWithThreshold<N>
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<const N: usize> Freeze for AdaptiveWithThreshold<N>
impl<const N: usize> RefUnwindSafe for AdaptiveWithThreshold<N>
impl<const N: usize> Send for AdaptiveWithThreshold<N>
impl<const N: usize> Sync for AdaptiveWithThreshold<N>
impl<const N: usize> Unpin for AdaptiveWithThreshold<N>
impl<const N: usize> UnsafeUnpin for AdaptiveWithThreshold<N>
impl<const N: usize> UnwindSafe for AdaptiveWithThreshold<N>
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