pub enum YieldValues<I> {
    Iter(I),
    Enumerator(Enumerator),
}
Expand description

Helper type for functions that either yield multiple values to a block or return an Enumerator.

I must implement Iterator<Item = T>, where T implements ArgList.

Variants§

§

Iter(I)

Yields I::Item to given block.

§

Enumerator(Enumerator)

Returns Enumerator from the method.

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.