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> Default for IdentityWithResult<Input, Error>
[src]impl<Input, Error> Reduce for IdentityWithResult<Input, Error>
[src]
impl<Input, Error> Reduce for IdentityWithResult<Input, Error>
[src]type Input = Result<Input, Self::Error>
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.
fn feed(&mut self, item: Self::Input) -> Result<Self::FeedProduce, Self::Error>
[src]
fn finalize(self) -> Result<Self::Output, Self::Error>
[src]
Auto Trait Implementations
impl<Input, Error> RefUnwindSafe for IdentityWithResult<Input, Error> where
Error: RefUnwindSafe,
Input: RefUnwindSafe,
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> 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> 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> Unpin for IdentityWithResult<Input, Error> where
Error: Unpin,
Input: Unpin,
impl<Input, Error> UnwindSafe for IdentityWithResult<Input, Error> where
Error: UnwindSafe,
Input: UnwindSafe,
impl<Input, Error> UnwindSafe for IdentityWithResult<Input, Error> where
Error: UnwindSafe,
Input: UnwindSafe,