[][src]Struct simple_generators_util::MapYield

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

Generator adapter that applies provided function to each yielded value.

Trait Implementations

impl<R, G, F, T> Generator<R> for MapYield<G, F> where
    G: Generator<R>,
    F: FnMut(G::Yield) -> T, 
[src]

type Yield = T

🔬 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 MapYield<G, F>[src]

impl<'pin, G, F> Unpin for MapYield<G, F> where
    __MapYield<'pin, G, F>: Unpin
[src]

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

Auto Trait Implementations

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

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