pub enum IteratorExecutorResult<'a, It, Input, Output, Result> {
    Completed {
        result: Result,
        remaining: It,
    },
    Output {
        output: Output,
        co: Coroutine<'a, Input, Output, Result>,
        remaining: It,
    },
    Exhausted {
        co: Box<dyn FnOnce(Input) -> Coroutine<'a, Input, Output, Result> + 'a>,
    },
}

Variants

Completed

Fields

result: Result

The final result of the coroutine

remaining: It

The coroutine has finished

Output

Fields

output: Output

Value emitted

co: Coroutine<'a, Input, Output, Result>
remaining: It

Exhausted

Fields

co: Box<dyn FnOnce(Input) -> Coroutine<'a, Input, Output, Result> + 'a>

We ran out of inputs, returns a coroutine to continue when more inputs are available

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.