pub struct ParallelConfig { /* private fields */ }
Expand description
Configuration builder for parallel dispatch
Implementations§
Source§impl ParallelConfig
impl ParallelConfig
Sourcepub fn with_workers(self, workers: usize) -> Self
pub fn with_workers(self, workers: usize) -> Self
Set the number of worker threads
Sourcepub fn with_threshold_multiplier(self, multiplier: f64) -> Self
pub fn with_threshold_multiplier(self, multiplier: f64) -> Self
Set the threshold multiplier for parallel execution
A value of 2.0 means matrices need to be 2x larger than default threshold to use parallel implementation
Sourcepub fn build(&self) -> WorkerConfig
pub fn build(&self) -> WorkerConfig
Build a WorkerConfig from this configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more