[][src]Struct amadeus::par_sink::Fold

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

Implementations

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

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

Constructs a new Fold.

Trait Implementations

impl<I, Source, ID, F, B> DistributedSink<Source> for Fold<I, ID, F, B> where
    B: ProcessSend + 'static,
    F: FnMut(B, Either<<I as DistributedPipe<Source>>::Item, B>) -> B + Clone + ProcessSend + 'static,
    I: DistributedPipe<Source>,
    ID: FnMut() -> B + Clone + ProcessSend + 'static, 
[src]

type Output = <<Fold<I, ID, F, B> as DistributedSink<Source>>::ReduceC as Reducer>::Output

type Pipe = I

type ReduceAFactory = FolderSyncReducerFactory<<I as DistributedPipe<Source>>::Item, FoldFolder<<I as DistributedPipe<Source>>::Item, ID, F, B, StepA>>

type ReduceBFactory = FolderSyncReducerFactory<<<Fold<I, ID, F, B> as DistributedSink<Source>>::ReduceA as Reducer>::Output, FoldFolder<<I as DistributedPipe<Source>>::Item, ID, F, B, StepB>>

type ReduceA = FolderSyncReducer<<I as DistributedPipe<Source>>::Item, FoldFolder<<I as DistributedPipe<Source>>::Item, ID, F, B, StepA>>

type ReduceB = FolderSyncReducer<<<Fold<I, ID, F, B> as DistributedSink<Source>>::ReduceA as Reducer>::Output, FoldFolder<<I as DistributedPipe<Source>>::Item, ID, F, B, StepB>>

type ReduceC = FolderSyncReducer<<<Fold<I, ID, F, B> as DistributedSink<Source>>::ReduceB as Reducer>::Output, FoldFolder<<I as DistributedPipe<Source>>::Item, ID, F, B, StepB>>

impl<I, Source, ID, F, B> ParallelSink<Source> for Fold<I, ID, F, B> where
    B: Send + 'static,
    F: FnMut(B, Either<<I as ParallelPipe<Source>>::Item, B>) -> B + Clone + Send + 'static,
    I: ParallelPipe<Source>,
    ID: FnMut() -> B + Clone + Send + 'static, 
[src]

type Output = <<Fold<I, ID, F, B> as ParallelSink<Source>>::ReduceC as Reducer>::Output

type Pipe = I

type ReduceAFactory = FolderSyncReducerFactory<<I as ParallelPipe<Source>>::Item, FoldFolder<<I as ParallelPipe<Source>>::Item, ID, F, B, StepA>>

type ReduceA = FolderSyncReducer<<I as ParallelPipe<Source>>::Item, FoldFolder<<I as ParallelPipe<Source>>::Item, ID, F, B, StepA>>

type ReduceC = FolderSyncReducer<<<Fold<I, ID, F, B> as ParallelSink<Source>>::ReduceA as Reducer>::Output, FoldFolder<<I as ParallelPipe<Source>>::Item, ID, F, B, StepB>>

Auto Trait Implementations

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

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

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

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

impl<I, ID, F, B> UnwindSafe for Fold<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<A, B> Downcast<A> for B where
    A: DowncastFrom<B>, 
[src]

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> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

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

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