pub struct ParallelPartitionPlan {
pub concurrency: usize,
pub chunk_size: usize,
pub use_direct_parallel_iter: bool,
}Expand description
Re-exported bounded parallel map and partition planning utilities. Planning metadata for bounded parallel partitioning.
Fields§
§concurrency: usizeEffective non-zero concurrency used by the plan.
chunk_size: usizeChunk size to use for partitioned processing. Guaranteed to be at least 1.
use_direct_parallel_iter: boolWhether direct parallel iteration is preferred over chunk partitioning.
Implementations§
Source§impl ParallelPartitionPlan
impl ParallelPartitionPlan
Sourcepub fn for_item_count(
item_count: usize,
requested_concurrency: usize,
) -> ParallelPartitionPlan
pub fn for_item_count( item_count: usize, requested_concurrency: usize, ) -> ParallelPartitionPlan
Build a partition plan for item_count items and requested concurrency.
Trait Implementations§
Source§impl Clone for ParallelPartitionPlan
impl Clone for ParallelPartitionPlan
Source§fn clone(&self) -> ParallelPartitionPlan
fn clone(&self) -> ParallelPartitionPlan
Returns a duplicate 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 ParallelPartitionPlan
impl Debug for ParallelPartitionPlan
Source§impl PartialEq for ParallelPartitionPlan
impl PartialEq for ParallelPartitionPlan
impl Copy for ParallelPartitionPlan
impl Eq for ParallelPartitionPlan
impl StructuralPartialEq for ParallelPartitionPlan
Auto Trait Implementations§
impl Freeze for ParallelPartitionPlan
impl RefUnwindSafe for ParallelPartitionPlan
impl Send for ParallelPartitionPlan
impl Sync for ParallelPartitionPlan
impl Unpin for ParallelPartitionPlan
impl UnsafeUnpin for ParallelPartitionPlan
impl UnwindSafe for ParallelPartitionPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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