Enum pushgen::GeneratorResult [−][src]
#[repr(u8)] pub enum GeneratorResult { Stopped, Complete, }
Expand description
The result of generator runs.
A run can either run to completion, and no new values will
be produced, or it can be stopped. In case it is stopped there might be more values available
that can be obtained by calling Generator::run
again.
Variants
Returned from Generator::run
when the generator was stopped because the output
function
returned ValueResult::Stop
Returned from Generator::run
when the generator has sent all values to the output
function.
When this has been returned the generator will never generate more values again.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for GeneratorResult
impl Send for GeneratorResult
impl Sync for GeneratorResult
impl Unpin for GeneratorResult
impl UnwindSafe for GeneratorResult
Blanket Implementations
Mutably borrows from an owned value. Read more