Enum magnus::block::YieldValues
source · 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
impl<I> RefUnwindSafe for YieldValues<I>where
I: RefUnwindSafe,
impl<I> Send for YieldValues<I>where
I: Send,
impl<I> Sync for YieldValues<I>where
I: Sync,
impl<I> Unpin for YieldValues<I>where
I: Unpin,
impl<I> UnwindSafe for YieldValues<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