[][src]Struct asparit::Setup

pub struct Setup {
    pub splits: Option<usize>,
    pub min_len: Option<usize>,
    pub max_len: Option<usize>,
}

Fields

splits: Option<usize>

Number of splits/threads this iterator will use to proceed.

min_len: Option<usize>

The minimum number of items that we will process sequentially. Defaults to 1, which means that we will split all the way down to a single item. This can be raised higher using the with_min_len method, which will force us to create sequential tasks at a larger granularity. Note that Rayon automatically normally attempts to adjust the size of parallel splits to reduce overhead, so this should not be needed.

max_len: Option<usize>

The maximum number of items that we will process sequentially. Defaults to MAX, which means that we can choose not to split at all. This can be lowered using the with_max_len method, which will force us to create more parallel tasks. Note that Rayon automatically normally attempts to adjust the size of parallel splits to reduce overhead, so this should not be needed.

Implementations

impl Setup[src]

pub fn merge(self, other: Self) -> Self[src]

Trait Implementations

impl Clone for Setup[src]

impl Debug for Setup[src]

impl Default for Setup[src]

Auto Trait Implementations

impl RefUnwindSafe for Setup

impl Send for Setup

impl Sync for Setup

impl Unpin for Setup

impl UnwindSafe for Setup

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.