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

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

Implementations

impl<A, B> GroupBy<A, B>[src]

pub fn new(a: A, b: B) -> Self[src]

Constructs a new GroupBy.

Trait Implementations

impl<A: DistributedPipe<Source, Item = (T, U)>, B: DistributedSink<U>, Source, T, U> DistributedSink<Source> for GroupBy<A, B> where
    T: Eq + Hash + ProcessSend + 'static,
    <B::Pipe as DistributedPipe<U>>::Task: Clone + ProcessSend + 'static,
    B::ReduceA: Clone + ProcessSend + 'static,
    B::ReduceB: Clone,
    B::ReduceC: Clone,
    B::Output: ProcessSend + 'static, 
[src]

type Output = HashMap<T, B::Output>

type Pipe = A

type ReduceA = GroupByReducerA<<B::Pipe as DistributedPipe<U>>::Task, B::ReduceA, T, U>

type ReduceB = GroupByReducerB<B::ReduceB, T, <B::ReduceA as ReducerSend<<B::Pipe as DistributedPipe<U>>::Item>>::Output>

type ReduceC = GroupByReducerB<B::ReduceC, T, <B::ReduceB as ReducerProcessSend<<B::ReduceA as Reducer<<B::Pipe as DistributedPipe<U>>::Item>>::Output>>::Output>

impl<A: ParallelPipe<Source, Item = (T, U)>, B: ParallelSink<U>, Source, T, U> ParallelSink<Source> for GroupBy<A, B> where
    T: Eq + Hash + Send + 'static,
    <B::Pipe as ParallelPipe<U>>::Task: Clone + Send + 'static,
    B::ReduceA: Clone + Send + 'static,
    B::ReduceC: Clone,
    B::Output: Send + 'static, 
[src]

type Output = HashMap<T, B::Output>

type Pipe = A

type ReduceA = GroupByReducerA<<B::Pipe as ParallelPipe<U>>::Task, B::ReduceA, T, U>

type ReduceC = GroupByReducerB<B::ReduceC, T, <B::ReduceA as ReducerSend<<B::Pipe as ParallelPipe<U>>::Item>>::Output>

Auto Trait Implementations

impl<A, B> RefUnwindSafe for GroupBy<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> Send for GroupBy<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for GroupBy<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for GroupBy<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for GroupBy<A, B> where
    A: UnwindSafe,
    B: 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, 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>,