Struct FromCoroutine
pub struct FromCoroutine<G>(pub(in ::iter::sources::from_coroutine) G);
An iterator over the values yielded by an underlying coroutine.
This struct is created by the iter::from_coroutine() function. See its documentation for
more.
Fields
0: G
Trait Implementations
impl<G> Debug for FromCoroutine<G>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<G: Clone> Clone for FromCoroutine<G>
fn clone(&self) -> FromCoroutine<G>
impl<G: Coroutine<Return = ()> + Unpin> Iterator for FromCoroutine<G>
type Item = <G as Coroutine>::Yield;fn next(&mut self) -> Option<Self::Item>
Auto Trait Implementations
impl<G> Freeze for FromCoroutine<G>
where
G: Freeze,
impl<G> RefUnwindSafe for FromCoroutine<G>
where
G: RefUnwindSafe,
impl<G> Send for FromCoroutine<G>
where
G: Send,
impl<G> Sync for FromCoroutine<G>
where
G: Sync,
impl<G> Unpin for FromCoroutine<G>
where
G: Unpin,
impl<G> UnsafeUnpin for FromCoroutine<G>
where
G: UnsafeUnpin,
impl<G> UnwindSafe for FromCoroutine<G>
where
G: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for FromCoroutine<G>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for FromCoroutine<G>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FromCoroutine<G>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FromCoroutine<G>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FromCoroutine<G>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FromCoroutine<G>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for FromCoroutine<G>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FromCoroutine<G>
impl<T, U> Into<U> for FromCoroutine<G>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FromCoroutine<G>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FromCoroutine<G>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>