[][src]Struct switcheroo::Yielder

pub struct Yielder<Input, Output> { /* fields omitted */ }

Yielder is an interface provided to every generator through which it returns a value.

Implementations

impl<Input, Output> Yielder<Input, Output>[src]

pub fn suspend(&self, val: Output) -> Input[src]

Suspends the generator and returns Some(val) from the resume() invocation that resumed the generator.

Auto Trait Implementations

impl<Input, Output> !RefUnwindSafe for Yielder<Input, Output>[src]

impl<Input, Output> !Send for Yielder<Input, Output>[src]

impl<Input, Output> !Sync for Yielder<Input, Output>[src]

impl<Input, Output> Unpin for Yielder<Input, Output>[src]

impl<Input, Output> UnwindSafe for Yielder<Input, Output> where
    Input: RefUnwindSafe,
    Output: RefUnwindSafe
[src]

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.