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
.
Yields I::Item
to given block.
Returns Enumerator
from the method.
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.