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

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

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

Returns the “default value” for a type. Read more

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

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

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

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

Called each time a new item was produced in order to aggregate it into the final result. Read more

Called once once all items where passed to feed(), producing the final Output of the operation or an Error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.