Struct git_features::parallel::reduce::IdentityWithResult[][src]

pub struct IdentityWithResult<Input, Error> { /* fields omitted */ }

An identity reducer for those who want to use Stepwise or in_parallel() without the use of non-threaded reduction of products created in threads.

Trait Implementations

impl<Input, Error> Default for IdentityWithResult<Input, Error>[src]

impl<Input, Error> Reduce for IdentityWithResult<Input, Error>[src]

type Input = Result<Input, Self::Error>

The type fed to the reducer in the feed() method. Read more

type FeedProduce = Input

The type produced in Ok(…) by feed(). Most reducers by nature use () here as the value is in the aggregation. However, some may use it to collect statistics only and return their Input in some form as a result here for Stepwise to be useful. Read more

type Output = ()

The type produced once by the finalize() method. Read more

type Error = Error

The error type to use for all methods of this trait.

Auto Trait Implementations

impl<Input, Error> RefUnwindSafe for IdentityWithResult<Input, Error> where
    Error: RefUnwindSafe,
    Input: RefUnwindSafe

impl<Input, Error> Send for IdentityWithResult<Input, Error> where
    Error: Send,
    Input: Send

impl<Input, Error> Sync for IdentityWithResult<Input, Error> where
    Error: Sync,
    Input: Sync

impl<Input, Error> Unpin for IdentityWithResult<Input, Error> where
    Error: Unpin,
    Input: Unpin

impl<Input, Error> UnwindSafe for IdentityWithResult<Input, Error> where
    Error: UnwindSafe,
    Input: 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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.