Enum magnus::block::YieldSplat

source ·
pub enum YieldSplat<I> {
    Iter(I),
    Enumerator(Enumerator),
}
Expand description

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

I must implement Iterator<Item = RArray>.

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.