pub enum Par {
Seq,
}Expand description
Parallelization mode.
Variants§
Seq
Sequential execution.
Implementations§
Source§impl Par
impl Par
Sourcepub fn is_sequential(&self) -> bool
pub fn is_sequential(&self) -> bool
Returns true if this mode is sequential.
Sourcepub fn num_threads(&self) -> usize
pub fn num_threads(&self) -> usize
Returns the number of threads to use (always 1 without parallel feature).
Trait Implementations§
impl Copy for Par
impl Eq for Par
impl StructuralPartialEq for Par
Auto Trait Implementations§
impl Freeze for Par
impl RefUnwindSafe for Par
impl Send for Par
impl Sync for Par
impl Unpin for Par
impl UnwindSafe for Par
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