[][src]Trait amadeus_core::dist_iter::DistributedIteratorMulti

#[must_use]
pub trait DistributedIteratorMulti<Source> {
    type Item;
    type Task: ConsumerMulti<Source, Item = Self::Item> + ProcessSend;
    fn task(&self) -> Self::Task;

    fn for_each<F>(self, f: F) -> ForEach<Self, F>
    where
        F: FnMut(Self::Item) + Clone + ProcessSend,
        Self::Item: 'static,
        Self: Sized
, { ... }
fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where
        F: FnMut(&Self::Item) + Clone + ProcessSend,
        Self: Sized
, { ... }
fn update<F>(self, f: F) -> Update<Self, F>
    where
        F: FnMut(&mut Self::Item) + Clone + ProcessSend,
        Self: Sized
, { ... }
fn map<B, F>(self, f: F) -> Map<Self, F>
    where
        F: FnMut(Self::Item) -> B + Clone + ProcessSend,
        Self: Sized
, { ... }
fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F>
    where
        F: FnMut(Self::Item) -> B + Clone + ProcessSend,
        B: IntoIterator,
        Self: Sized
, { ... }
fn filter<F>(self, f: F) -> Filter<Self, F>
    where
        F: FnMut(&Self::Item) -> bool + Clone + ProcessSend,
        Self: Sized
, { ... }
fn fold<ID, F, B>(self, identity: ID, op: F) -> Fold<Self, ID, F, B>
    where
        ID: FnMut() -> B + Clone + ProcessSend,
        F: FnMut(B, Either<Self::Item, B>) -> B + Clone + ProcessSend,
        B: ProcessSend,
        Self::Item: 'static,
        Self: Sized
, { ... }
fn count(self) -> Count<Self>
    where
        Self::Item: 'static,
        Self: Sized
, { ... }
fn sum<B>(self) -> Sum<Self, B>
    where
        B: Sum<Self::Item> + Sum<B> + ProcessSend,
        Self::Item: 'static,
        Self: Sized
, { ... }
fn combine<F>(self, f: F) -> Combine<Self, F>
    where
        F: FnMut(Self::Item, Self::Item) -> Self::Item + Clone + ProcessSend,
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn max(self) -> Max<Self>
    where
        Self::Item: Ord + ProcessSend,
        Self: Sized
, { ... }
fn max_by<F>(self, f: F) -> MaxBy<Self, F>
    where
        F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + ProcessSend,
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn max_by_key<F, B>(self, f: F) -> MaxByKey<Self, F>
    where
        F: FnMut(&Self::Item) -> B + Clone + ProcessSend,
        B: Ord + 'static,
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn min(self) -> Min<Self>
    where
        Self::Item: Ord + ProcessSend,
        Self: Sized
, { ... }
fn min_by<F>(self, f: F) -> MinBy<Self, F>
    where
        F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + ProcessSend,
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn min_by_key<F, B>(self, f: F) -> MinByKey<Self, F>
    where
        F: FnMut(&Self::Item) -> B + Clone + ProcessSend,
        B: Ord + 'static,
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn most_frequent(
        self,
        n: usize,
        probability: f64,
        tolerance: f64
    ) -> MostFrequent<Self>
    where
        Self::Item: Hash + Eq + Clone + ProcessSend,
        Self: Sized
, { ... }
fn most_distinct<A, B>(
        self,
        n: usize,
        probability: f64,
        tolerance: f64,
        error_rate: f64
    ) -> MostDistinct<Self>
    where
        Self: DistributedIteratorMulti<Source, Item = (A, B)> + Sized,
        A: Hash + Eq + Clone + ProcessSend,
        B: Hash + 'static
, { ... }
fn sample_unstable(self, samples: usize) -> SampleUnstable<Self>
    where
        Self::Item: ProcessSend,
        Self: Sized
, { ... }
fn all<F>(self, f: F) -> All<Self, F>
    where
        F: FnMut(Self::Item) -> bool + Clone + ProcessSend,
        Self::Item: 'static,
        Self: Sized
, { ... }
fn any<F>(self, f: F) -> Any<Self, F>
    where
        F: FnMut(Self::Item) -> bool + Clone + ProcessSend,
        Self::Item: 'static,
        Self: Sized
, { ... }
fn collect<B>(self) -> Collect<Self, B>
    where
        B: FromDistributedIterator<Self::Item>,
        Self: Sized
, { ... }
fn cloned<'a, T>(self) -> Cloned<Self, T, Source>
    where
        T: Clone + 'a,
        Source: 'a,
        Self: DistributedIteratorMulti<&'a Source, Item = &'a T> + Sized
, { ... } }

Associated Types

type Item

type Task: ConsumerMulti<Source, Item = Self::Item> + ProcessSend

Loading content...

Required methods

fn task(&self) -> Self::Task

Loading content...

Provided methods

fn for_each<F>(self, f: F) -> ForEach<Self, F> where
    F: FnMut(Self::Item) + Clone + ProcessSend,
    Self::Item: 'static,
    Self: Sized

fn inspect<F>(self, f: F) -> Inspect<Self, F> where
    F: FnMut(&Self::Item) + Clone + ProcessSend,
    Self: Sized

fn update<F>(self, f: F) -> Update<Self, F> where
    F: FnMut(&mut Self::Item) + Clone + ProcessSend,
    Self: Sized

fn map<B, F>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Item) -> B + Clone + ProcessSend,
    Self: Sized

fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F> where
    F: FnMut(Self::Item) -> B + Clone + ProcessSend,
    B: IntoIterator,
    Self: Sized

fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> bool + Clone + ProcessSend,
    Self: Sized

fn fold<ID, F, B>(self, identity: ID, op: F) -> Fold<Self, ID, F, B> where
    ID: FnMut() -> B + Clone + ProcessSend,
    F: FnMut(B, Either<Self::Item, B>) -> B + Clone + ProcessSend,
    B: ProcessSend,
    Self::Item: 'static,
    Self: Sized

fn count(self) -> Count<Self> where
    Self::Item: 'static,
    Self: Sized

fn sum<B>(self) -> Sum<Self, B> where
    B: Sum<Self::Item> + Sum<B> + ProcessSend,
    Self::Item: 'static,
    Self: Sized

fn combine<F>(self, f: F) -> Combine<Self, F> where
    F: FnMut(Self::Item, Self::Item) -> Self::Item + Clone + ProcessSend,
    Self::Item: ProcessSend,
    Self: Sized

fn max(self) -> Max<Self> where
    Self::Item: Ord + ProcessSend,
    Self: Sized

fn max_by<F>(self, f: F) -> MaxBy<Self, F> where
    F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + ProcessSend,
    Self::Item: ProcessSend,
    Self: Sized

fn max_by_key<F, B>(self, f: F) -> MaxByKey<Self, F> where
    F: FnMut(&Self::Item) -> B + Clone + ProcessSend,
    B: Ord + 'static,
    Self::Item: ProcessSend,
    Self: Sized

fn min(self) -> Min<Self> where
    Self::Item: Ord + ProcessSend,
    Self: Sized

fn min_by<F>(self, f: F) -> MinBy<Self, F> where
    F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + ProcessSend,
    Self::Item: ProcessSend,
    Self: Sized

fn min_by_key<F, B>(self, f: F) -> MinByKey<Self, F> where
    F: FnMut(&Self::Item) -> B + Clone + ProcessSend,
    B: Ord + 'static,
    Self::Item: ProcessSend,
    Self: Sized

fn most_frequent(
    self,
    n: usize,
    probability: f64,
    tolerance: f64
) -> MostFrequent<Self> where
    Self::Item: Hash + Eq + Clone + ProcessSend,
    Self: Sized

fn most_distinct<A, B>(
    self,
    n: usize,
    probability: f64,
    tolerance: f64,
    error_rate: f64
) -> MostDistinct<Self> where
    Self: DistributedIteratorMulti<Source, Item = (A, B)> + Sized,
    A: Hash + Eq + Clone + ProcessSend,
    B: Hash + 'static, 

fn sample_unstable(self, samples: usize) -> SampleUnstable<Self> where
    Self::Item: ProcessSend,
    Self: Sized

fn all<F>(self, f: F) -> All<Self, F> where
    F: FnMut(Self::Item) -> bool + Clone + ProcessSend,
    Self::Item: 'static,
    Self: Sized

fn any<F>(self, f: F) -> Any<Self, F> where
    F: FnMut(Self::Item) -> bool + Clone + ProcessSend,
    Self::Item: 'static,
    Self: Sized

fn collect<B>(self) -> Collect<Self, B> where
    B: FromDistributedIterator<Self::Item>,
    Self: Sized

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

Loading content...

Implementations on Foreign Types

impl<A: DistributedIteratorMulti<Source>, B: DistributedIteratorMulti<Source, Item = A::Item>, Source> DistributedIteratorMulti<Source> for Sum2<A, B>[src]

type Item = A::Item

type Task = Sum2<A::Task, B::Task>

impl<Source> DistributedIteratorMulti<Source> for () where
    Source: , 
[src]

type Item = Sum0

type Task = ()

impl<Source, I0: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0,) where
    Source: , 
[src]

type Item = Sum1<I0::Item>

type Task = (I0::Task,)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1) where
    Source: Copy
[src]

type Item = Sum2<I0::Item, I1::Item>

type Task = (I0::Task, I1::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2) where
    Source: Copy
[src]

type Item = Sum3<I0::Item, I1::Item, I2::Item>

type Task = (I0::Task, I1::Task, I2::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>, I3: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2, I3) where
    Source: Copy
[src]

type Item = Sum4<I0::Item, I1::Item, I2::Item, I3::Item>

type Task = (I0::Task, I1::Task, I2::Task, I3::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>, I3: DistributedIteratorMulti<Source>, I4: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2, I3, I4) where
    Source: Copy
[src]

type Item = Sum5<I0::Item, I1::Item, I2::Item, I3::Item, I4::Item>

type Task = (I0::Task, I1::Task, I2::Task, I3::Task, I4::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>, I3: DistributedIteratorMulti<Source>, I4: DistributedIteratorMulti<Source>, I5: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2, I3, I4, I5) where
    Source: Copy
[src]

type Item = Sum6<I0::Item, I1::Item, I2::Item, I3::Item, I4::Item, I5::Item>

type Task = (I0::Task, I1::Task, I2::Task, I3::Task, I4::Task, I5::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>, I3: DistributedIteratorMulti<Source>, I4: DistributedIteratorMulti<Source>, I5: DistributedIteratorMulti<Source>, I6: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2, I3, I4, I5, I6) where
    Source: Copy
[src]

type Item = Sum7<I0::Item, I1::Item, I2::Item, I3::Item, I4::Item, I5::Item, I6::Item>

type Task = (I0::Task, I1::Task, I2::Task, I3::Task, I4::Task, I5::Task, I6::Task)

impl<Source, I0: DistributedIteratorMulti<Source>, I1: DistributedIteratorMulti<Source>, I2: DistributedIteratorMulti<Source>, I3: DistributedIteratorMulti<Source>, I4: DistributedIteratorMulti<Source>, I5: DistributedIteratorMulti<Source>, I6: DistributedIteratorMulti<Source>, I7: DistributedIteratorMulti<Source>> DistributedIteratorMulti<Source> for (I0, I1, I2, I3, I4, I5, I6, I7) where
    Source: Copy
[src]

type Item = Sum8<I0::Item, I1::Item, I2::Item, I3::Item, I4::Item, I5::Item, I6::Item, I7::Item>

type Task = (I0::Task, I1::Task, I2::Task, I3::Task, I4::Task, I5::Task, I6::Task, I7::Task)

Loading content...

Implementors

impl<'a, I, Source, T: 'a> DistributedIteratorMulti<&'a Source> for Cloned<I, T, Source> where
    I: DistributedIteratorMulti<&'a Source, Item = &'a T>,
    T: Clone
[src]

type Item = T

type Task = ClonedConsumer<I::Task>

impl<I: DistributedIteratorMulti<Source>, F, R, Source> DistributedIteratorMulti<Source> for Map<I, F> where
    F: FnMut(<I as DistributedIteratorMulti<Source>>::Item) -> R + Clone + ProcessSend
[src]

type Item = R

type Task = MapConsumer<I::Task, F>

impl<I: DistributedIteratorMulti<Source>, F, R: IntoIterator, Source> DistributedIteratorMulti<Source> for FlatMap<I, F> where
    F: FnMut(<I as DistributedIteratorMulti<Source>>::Item) -> R + Clone + ProcessSend
[src]

type Item = R::Item

type Task = FlatMapConsumer<I::Task, F>

impl<I: DistributedIteratorMulti<Source>, F, Source> DistributedIteratorMulti<Source> for Filter<I, F> where
    F: FnMut(&<I as DistributedIteratorMulti<Source>>::Item) -> bool + Clone + ProcessSend
[src]

type Item = I::Item

type Task = FilterConsumer<I::Task, F>

impl<I: DistributedIteratorMulti<Source>, F, Source> DistributedIteratorMulti<Source> for Inspect<I, F> where
    F: FnMut(&<I as DistributedIteratorMulti<Source>>::Item) + Clone + ProcessSend
[src]

type Item = I::Item

type Task = InspectConsumer<I::Task, F>

impl<I: DistributedIteratorMulti<Source>, F, Source> DistributedIteratorMulti<Source> for Update<I, F> where
    F: FnMut(&mut <I as DistributedIteratorMulti<Source>>::Item) + Clone + ProcessSend
[src]

type Item = I::Item

type Task = UpdateConsumer<I::Task, F>

impl<Item> DistributedIteratorMulti<Item> for Identity[src]

type Item = Item

type Task = IdentityMultiTask

Loading content...