[][src]Struct simple_generators_util::MapReturn

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

Generator adapter that applies provided function to return value.

Trait Implementations

impl<R, G, F, T> Generator<R> for MapReturn<G, F> where
    G: Generator<R>,
    F: FnMut(G::Return) -> T, 
[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 = T

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

The type of value this generator returns. Read more

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

impl<'pin, G, F> Unpin for MapReturn<G, F> where
    __MapReturn<'pin, G, F>: Unpin
[src]

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

Auto Trait Implementations

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

impl<G, F> Sync for MapReturn<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.