[][src]Struct simple_generators_util::MapResume

pub struct MapResume<G, F> { /* fields omitted */ }

Generator adapter that applies provided function to resume arguments.

Trait Implementations

impl<ResumeInner, ResumeOuter, G, F> Generator<ResumeOuter> for MapResume<G, F> where
    G: Generator<ResumeInner>,
    F: FnMut(ResumeOuter) -> ResumeInner, 
[src]

type Yield = G::Yield

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

The type of value this generator yields. Read more

type Return = G::Return

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

The type of value this generator returns. Read more

impl<G, F> PinnedDrop for MapResume<G, F>[src]

impl<'pin, G, F> Unpin for MapResume<G, F> where
    __MapResume<'pin, G, F>: Unpin
[src]

impl<G, F> UnsafeUnpin for MapResume<G, F>[src]

Auto Trait Implementations

impl<G, F> Send for MapResume<G, F> where
    F: Send,
    G: Send

impl<G, F> Sync for MapResume<G, F> where
    F: Sync,
    G: Sync

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<R, G> GeneratorExt<R> for G where
    G: Generator<R>, 
[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.