Enum generator_ext::gen::State[][src]

pub enum State<Y, R> {
    Yield(Y),
    Return(R),
}

Indicates the State of Generator. This Enum is used by functions and methods that advance a Generator.

Variants

Trait Implementations

impl<Y: Debug, R: Debug> Debug for State<Y, R>
[src]

Formats the value using the given formatter. Read more

impl<Y, R: Into<Y>> Into<Option<Y>> for State<Y, R>
[src]

Performs the conversion.

Auto Trait Implementations

impl<Y, R> Send for State<Y, R> where
    R: Send,
    Y: Send

impl<Y, R> Sync for State<Y, R> where
    R: Sync,
    Y: Sync