Struct jobsteal::iter::Cloned [] [src]

pub struct Cloned<T> {
    // some fields omitted
}

Trait Implementations

impl<'a, T, U: Clone + 'a> Spliterator for Cloned<T> where T: Spliterator<Item=&'a U>
[src]

type Item = U

The item this iterator produces.

type Base = MapBase<T::Base>

The splittable base data which this consists of.

type Consumer = ClonedConsumer<T::Consumer>

A consumer which can act as an ad-hoc iterator adapter chain while being shared across threads. Read more

fn destructure(self) -> (Self::Base, Self::Consumer)

Destructure this iterator into a splittable base and a shareable consumer of that base. Read more

fn size_hint(&self) -> (usize, Option<usize>)

A lower bound and optional upper bound on the size of this iterator.

fn cloned<'a, T: 'a + Clone>(self) -> Cloned<Self> where Self: Spliterator<Item=&'a T>

Clone the items of this iterator to get owned copies.

fn enumerate(self) -> Enumerate<Self>

Enumerate items by their index.

fn filter<F: Sync>(self, pred: F) -> Filter<Self, F> where F: Fn(&Self::Item) -> bool

Filter items by some predicate.

fn flat_map<U, F: Sync>(self, flat_map: F) -> FlatMap<Self, F> where U: IntoIterator, F: Fn(Self::Item) -> U

Produce an iterator for each element, and then yield the elements of those iterators.

fn map<F: Sync, U>(self, map: F) -> Map<Self, F> where F: Fn(Self::Item) -> U

Map the items of this iterator to another type using the supplied function.

fn zip<B: IntoSpliterator>(self, other: B) -> Zip<Self, B::SplitIter>

Zip this iterator with another, combining their items in a tuple. Read more

fn any<P: Sync>(self, spawner: &Spawner, pred: P) -> bool where P: Fn(Self::Item) -> bool

Whether any of the elements fulfill the supplied predicate.

fn all<P: Sync>(self, spawner: &Spawner, pred: P) -> bool where P: Fn(Self::Item) -> bool

Whether all of the elements fulfill the supplied predicate.

fn for_each<F>(self, spawner: &Spawner, f: F) where F: Sync + Fn(Self::Item)

Consume this iterator, performing an action for each item.

fn collect<T: Send>(self, spawner: &Spawner) -> T where Self::Item: Send, T: FromIterator<Self::Item> + Combine + Send

Collect the items of this iterator into a combinable collection. Read more

fn fold<F: Sync>(self, spawner: &Spawner, initial: Self::Item, folder: F) -> Self::Item where F: Folder<Self::Item>, Self::Item: Send

Fold the items of the iterator together with the given operation and initial state. Read more

fn with_cost_mul(self, mul: f32) -> CostMul<Self>

Uses a cost multiplier for this iterator. Read more

impl<T: Clone> Clone for Cloned<T>
[src]

fn clone(&self) -> Cloned<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more