Enum faer_core::Parallelism
source · pub enum Parallelism {
None,
Rayon(usize),
}
Expand description
Parallelism strategy that can be passed to most of the routines in the library.
Variants§
None
No parallelism.
The code is executed sequentially on the same thread that calls a function and passes this argument.
Rayon(usize)
Rayon parallelism. Only avaialble with the rayon
feature.
The code is possibly executed in parallel on the current thread, as well as the currently active rayon thread pool.
The contained value represents a hint about the number of threads an implementation should use, but there is no way to guarantee how many or which threads will be used.
A value of 0
treated as equivalent to rayon::current_num_threads()
.
Trait Implementations§
source§impl Clone for Parallelism
impl Clone for Parallelism
source§fn clone(&self) -> Parallelism
fn clone(&self) -> Parallelism
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Parallelism
impl Debug for Parallelism
source§impl PartialEq for Parallelism
impl PartialEq for Parallelism
source§fn eq(&self, other: &Parallelism) -> bool
fn eq(&self, other: &Parallelism) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Parallelism
impl Eq for Parallelism
impl StructuralEq for Parallelism
impl StructuralPartialEq for Parallelism
Auto Trait Implementations§
impl RefUnwindSafe for Parallelism
impl Send for Parallelism
impl Sync for Parallelism
impl Unpin for Parallelism
impl UnwindSafe for Parallelism
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