[][src]Struct hibitset::BitParIter

pub struct BitParIter<T>(_, _);

A ParallelIterator over a BitSetLike structure.

Methods

impl<T> BitParIter<T>[src]

pub fn new(set: T) -> Self[src]

Creates a new BitParIter. You usually don't call this function but just .par_iter() on a bit set.

Default layer split amount is 3.

pub fn layers_split(self, layers: u8) -> Self[src]

Sets how many layers are split when forking.

Examples

let mut bitset = BitSet::new();
bitset.par_iter()
    .layers_split(2)
    .count();

The value should be in range [1, 3]

splitslargest smallest unit of work
1usize_bits3
2usize_bits2
3usize_bits

Trait Implementations

impl<T: Debug> Debug for BitParIter<T>[src]

impl<T> ParallelIterator for BitParIter<T> where
    T: BitSetLike + Send + Sync
[src]

type Item = u32

The type of item that this parallel iterator produces. For example, if you use the [for_each] method, this is the type of item that your closure will be invoked with. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for BitParIter<T> where
    T: RefUnwindSafe

impl<T> Send for BitParIter<T> where
    T: Send

impl<T> Sync for BitParIter<T> where
    T: Sync

impl<T> Unpin for BitParIter<T> where
    T: Unpin

impl<T> UnwindSafe for BitParIter<T> where
    T: UnwindSafe

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> IntoParallelIterator for T where
    T: ParallelIterator
[src]

type Iter = T

The parallel iterator type that will be created.

type Item = <T as ParallelIterator>::Item

The type of item that the parallel iterator will produce.

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.