[][src]Struct amadeus::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) -> Fold<P, ID, F, B>[src]

Constructs a new Fold.

Trait Implementations

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

type Done = <<Fold<P, ID, F, B> as DistributedSink<Item>>::ReduceC as Reducer<<<Fold<P, ID, F, B> as DistributedSink<Item>>::ReduceB as Reducer<<<Fold<P, ID, F, B> as DistributedSink<Item>>::ReduceA as Reducer<<P as DistributedPipe<Item>>::Output>>::Done>>::Done>>::Done

type Pipe = P

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

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

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

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

type Done = <<Fold<P, ID, F, B> as ParallelSink<Item>>::ReduceC as Reducer<<<Fold<P, ID, F, B> as ParallelSink<Item>>::ReduceA as Reducer<<P as ParallelPipe<Item>>::Output>>::Done>>::Done

type Pipe = P

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

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

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<A, B> Downcast<A> for B where
    A: DowncastFrom<B>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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 where
    T: ?Sized
[src]

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

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