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
impl<I> RefUnwindSafe for YieldSplat<I>where
I: RefUnwindSafe,
impl<I> Send for YieldSplat<I>where
I: Send,
impl<I> Sync for YieldSplat<I>where
I: Sync,
impl<I> Unpin for YieldSplat<I>where
I: Unpin,
impl<I> UnwindSafe for YieldSplat<I>where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more