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>
Source§fn clone(&self) -> AdaptiveWithThreshold<N>
fn clone(&self) -> AdaptiveWithThreshold<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<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§fn default() -> AdaptiveWithThreshold<N>
fn default() -> AdaptiveWithThreshold<N>
Returns the “default value” for a type. Read more
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