[][src]Struct generator_extensions::States

pub struct States<'a, R, G: Generator<R>> { /* fields omitted */ }

The return type of Resumable::states.

Implementations

impl<'a, R, G: Generator<R>> States<'a, R, G>[src]

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

Creates a new States generator from a pinned generator.

Consider using Resumable::states instead.

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

Retrieves the original pinned generator.

Trait Implementations

impl<'a, R, G: Generator<R>> Debug for States<'a, R, G>[src]

impl<'a, R, G: Generator<R>> Generator<R> for States<'a, R, G>[src]

type Yield = GeneratorState<G::Yield, G::Return>

🔬 This is a nightly-only experimental API. (generator_trait)

The type of value this generator yields. Read more

type Return = ()

🔬 This is a nightly-only experimental API. (generator_trait)

The type of value this generator returns. Read more

Auto Trait Implementations

impl<'a, R, G> Send for States<'a, R, G> where
    G: Send

impl<'a, R, G> Sync for States<'a, R, G> where
    G: Sync

impl<'a, R, G> Unpin for States<'a, R, 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<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.