[][src]Crate simple_generators_util

Structs

MapResume

Generator adapter that applies provided function to resume arguments.

MapReturn

Generator adapter that applies provided function to return value.

MapYield

Generator adapter that applies provided function to each yielded value.

RawGenIterator

Low-level adapter, yielding GeneratorStates directly. This iterator is "endless" - it never returns None. This iterator does not keep track of the generator state, that's why behavior of polling after finish is unspecified (usually underlying generator will panic).

SimpleGenIterator

Simple iterator over Yields. Supported generator must have () as resume argument and () or ! as return value. This iterator does not keep track of the generator state, that's why behavior of polling after finish is unspecified (usually underlying generator will panic).

Enums

FusedGenIterator

High-level fused iterator. When underlying generator returns, all subsequent calls to next will return None. Additionally, this iterator stores generator return value.

Traits

GeneratorExt

This trait is automatically implemented for all generators.