[][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<Item, Output = (T, U)>, B: DistributedSink<U>, Item, T, U> DistributedSink<Item> 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::Done: ProcessSend + 'static, 
[src]

type Done = IndexMap<T, B::Done>

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>>::Output>>::Done>

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

impl<A: ParallelPipe<Item, Output = (T, U)>, B: ParallelSink<U>, Item, T, U> ParallelSink<Item> 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::Done: Send + 'static, 
[src]

type Done = IndexMap<T, B::Done>

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>>::Output>>::Done>

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>,