[][src]Struct amadeus_core::par_sink::Fold

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

Implementations

impl<P, ID, F, B> Fold<P, ID, F, B>[src]

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

Constructs a new Fold.

Trait Implementations

impl<P: ParallelPipe<Item>, Item, ID, F, B> DistributedSink<Item> for Fold<P, ID, F, B> where
    ID: FnMut<(), Output = B> + Clone + Send + 'static,
    F: FnMut<(B, Either<P::Output, B>), Output = B> + Clone + Send + 'static,
    B: 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, FoldFolder<P::Output, ID, F, B, StepA>, Inter>

type ReduceB = FolderSyncReducer<<Self::ReduceA as Reducer<P::Output>>::Done, FoldFolder<P::Output, ID, F, B, StepB>, Inter>

type ReduceC = FolderSyncReducer<<Self::ReduceB as Reducer<<Self::ReduceA as Reducer<P::Output>>::Done>>::Done, FoldFolder<P::Output, ID, F, B, StepB>, Final>

impl<P: ParallelPipe<Item>, Item, ID, F, B> ParallelSink<Item> for Fold<P, ID, F, B> where
    ID: FnMut<(), Output = B> + Clone + Send + 'static,
    F: FnMut<(B, Either<P::Output, B>), Output = B> + Clone + Send + 'static,
    B: 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, FoldFolder<P::Output, ID, F, B, StepA>, Inter>

type ReduceC = FolderSyncReducer<<Self::ReduceA as Reducer<P::Output>>::Done, FoldFolder<P::Output, ID, F, B, StepB>, Final>

Auto Trait Implementations

impl<P, ID, F, B> RefUnwindSafe for Fold<P, ID, F, B> where
    F: RefUnwindSafe,
    ID: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, ID, F, B> Send for Fold<P, ID, F, B> where
    F: Send,
    ID: Send,
    P: Send

impl<P, ID, F, B> Sync for Fold<P, ID, F, B> where
    F: Sync,
    ID: Sync,
    P: Sync

impl<P, ID, F, B> Unpin for Fold<P, ID, F, B> where
    F: Unpin,
    ID: Unpin,
    P: Unpin

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