pub struct ParallelInfo {
pub parallelizable: bool,
pub reason: Option<String>,
pub chunk_size: usize,
pub num_chunks: usize,
pub strategy: ParallelStrategy,
pub is_reduction: bool,
}Expand description
Result of parallelization analysis for a loop.
Fields§
§parallelizable: boolWhether the loop can be parallelized.
reason: Option<String>Reason if not parallelizable.
chunk_size: usizeRecommended chunk size.
num_chunks: usizeNumber of chunks.
strategy: ParallelStrategyRecommended strategy.
is_reduction: boolWhether reduction is needed.
Trait Implementations§
Source§impl Clone for ParallelInfo
impl Clone for ParallelInfo
Source§fn clone(&self) -> ParallelInfo
fn clone(&self) -> ParallelInfo
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 moreSource§impl Debug for ParallelInfo
impl Debug for ParallelInfo
Auto Trait Implementations§
impl Freeze for ParallelInfo
impl RefUnwindSafe for ParallelInfo
impl Send for ParallelInfo
impl Sync for ParallelInfo
impl Unpin for ParallelInfo
impl UnsafeUnpin for ParallelInfo
impl UnwindSafe for ParallelInfo
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