[][src]Struct generator_extensions::Iter

pub struct Iter<'a, G: Generator<()>> { /* fields omitted */ }

The return type of Resumable::iter.

Implementations

impl<'a, G: Generator<(), Return = ()>> Iter<'a, G>[src]

#[must_use]pub fn new(pin: Pin<&'a mut G>) -> Self[src]

Creates a new Iter from a suitable pinned generator.

Consider using Resumable::iter instead.

#[must_use]pub fn into_inner(self) -> Pin<&'a mut G>[src]

Retrieves the original pinned generator.

Trait Implementations

impl<'a, G: Generator<(), Return = ()>> Debug for Iter<'a, G>[src]

impl<'a, G: Generator<(), Return = ()>> Iterator for Iter<'a, G>[src]

type Item = G::Yield

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, G> Send for Iter<'a, G> where
    G: Send

impl<'a, G> Sync for Iter<'a, G> where
    G: Sync

impl<'a, G> Unpin for Iter<'a, G>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.