[][src]Struct amadeus_core::par_sink::GroupBy

#[must_use]pub struct GroupBy<I, ID, F, B> { /* fields omitted */ }

Implementations

impl<I, ID, F, B> GroupBy<I, ID, F, B>[src]

pub fn new(i: I, identity: ID, op: F) -> Self[src]

Constructs a new GroupBy.

Trait Implementations

impl<I: ParallelPipe<Source, Item = (A, B)>, Source, A, B, ID, F, C> DistributedSink<Source> for GroupBy<I, ID, F, C> where
    A: Eq + Hash + Send + 'static,
    ID: FnMut() -> C + Clone + Send + 'static,
    F: FnMut(C, Either<B, C>) -> C + Clone + Send + 'static,
    C: Send + 'static, 
[src]

type Output = <Self::ReduceC as Reducer>::Output

type Pipe = I

type ReduceAFactory = FolderSyncReducerFactory<I::Item, GroupByFolder<A, B, ID, F, C, StepA>>

type ReduceBFactory = FolderSyncReducerFactory<<Self::ReduceA as Reducer>::Output, GroupByFolder<A, B, ID, F, C, StepB>>

type ReduceA = FolderSyncReducer<I::Item, GroupByFolder<A, B, ID, F, C, StepA>>

type ReduceB = FolderSyncReducer<<Self::ReduceA as Reducer>::Output, GroupByFolder<A, B, ID, F, C, StepB>>

type ReduceC = FolderSyncReducer<<Self::ReduceB as Reducer>::Output, GroupByFolder<A, B, ID, F, C, StepB>>

impl<I: ParallelPipe<Source, Item = (A, B)>, Source, A, B, ID, F, C> ParallelSink<Source> for GroupBy<I, ID, F, C> where
    A: Eq + Hash + Send + 'static,
    ID: FnMut() -> C + Clone + Send + 'static,
    F: FnMut(C, Either<B, C>) -> C + Clone + Send + 'static,
    C: Send + 'static, 
[src]

type Output = <Self::ReduceC as Reducer>::Output

type Pipe = I

type ReduceAFactory = FolderSyncReducerFactory<I::Item, GroupByFolder<A, B, ID, F, C, StepA>>

type ReduceA = FolderSyncReducer<I::Item, GroupByFolder<A, B, ID, F, C, StepA>>

type ReduceC = FolderSyncReducer<<Self::ReduceA as Reducer>::Output, GroupByFolder<A, B, ID, F, C, StepB>>

Auto Trait Implementations

impl<I, ID, F, B> RefUnwindSafe for GroupBy<I, ID, F, B> where
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    ID: RefUnwindSafe

impl<I, ID, F, B> Send for GroupBy<I, ID, F, B> where
    F: Send,
    I: Send,
    ID: Send

impl<I, ID, F, B> Sync for GroupBy<I, ID, F, B> where
    F: Sync,
    I: Sync,
    ID: Sync

impl<I, ID, F, B> Unpin for GroupBy<I, ID, F, B> where
    F: Unpin,
    I: Unpin,
    ID: Unpin

impl<I, ID, F, B> UnwindSafe for GroupBy<I, ID, F, B> where
    F: UnwindSafe,
    I: UnwindSafe,
    ID: 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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,