[][src]Struct amadeus_core::par_sink::MinByKey

#[must_use]pub struct MinByKey<P, F> { /* fields omitted */ }

Implementations

impl<P, F> MinByKey<P, F>[src]

pub fn new(pipe: P, f: F) -> Self[src]

Constructs a new MinByKey.

Trait Implementations

impl<P: ParallelPipe<Input>, Input, F, B> DistributedSink<Input> for MinByKey<P, F> where
    F: for<'a> FnMut<(&'a P::Output,), Output = B> + Clone + Send + 'static,
    B: Ord + 'static,
    P::Output: Send + 'static, 
[src]

type Done = <Self::ReduceC as Reducer<<Self::ReduceB as Reducer<<Self::ReduceA as Reducer<P::Output>>::Done>>::Done>>::Done

type Pipe = P

type ReduceA = FolderSyncReducer<P::Output, MinByKey<P::Output, F, B>>

type ReduceB = FolderSyncReducer<<Self::ReduceA as Reducer<P::Output>>::Done, MinByKey<P::Output, F, B>>

type ReduceC = FolderSyncReducer<<Self::ReduceB as Reducer<<Self::ReduceA as Reducer<P::Output>>::Done>>::Done, MinByKey<P::Output, F, B>>

impl<P: ParallelPipe<Input>, Input, F, B> ParallelSink<Input> for MinByKey<P, F> where
    F: for<'a> FnMut<(&'a P::Output,), Output = B> + Clone + Send + 'static,
    B: Ord + 'static,
    P::Output: Send + 'static, 
[src]

type Done = <Self::ReduceC as Reducer<<Self::ReduceA as Reducer<P::Output>>::Done>>::Done

type Pipe = P

type ReduceA = FolderSyncReducer<P::Output, MinByKey<P::Output, F, B>>

type ReduceC = FolderSyncReducer<<Self::ReduceA as Reducer<P::Output>>::Done, MinByKey<P::Output, F, B>>

Auto Trait Implementations

impl<P, F> RefUnwindSafe for MinByKey<P, F> where
    F: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, F> Send for MinByKey<P, F> where
    F: Send,
    P: Send

impl<P, F> Sync for MinByKey<P, F> where
    F: Sync,
    P: Sync

impl<P, F> Unpin for MinByKey<P, F> where
    F: Unpin,
    P: Unpin

impl<P, F> UnwindSafe for MinByKey<P, F> where
    F: UnwindSafe,
    P: 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>,