Crate generator [−] [src]
generator
Rust generator library
Macros
| done |
it's a special return instruction that yield nothing but only terminate the generator safely |
Structs
| GeneratorImpl |
|
| Gn |
Generator helper |
| Scope |
passed in scope tpye it not use the context to pass data, but keep it's own data ref this struct provide both compile type info and runtime data |
Enums
| Error |
yield panic error types |
Functions
| co_get_yield |
coroutine get passed in yield para |
| co_yield_with |
coroutine yield |
| done |
don't use it directly, use done!() macro instead |
| get_local_data |
get the current context local data only coroutine support local data |
| get_yield |
get the passed in para |
| is_generator |
check the current context if it's generator |
| yield_ |
yiled and get the send para |
| yield_from |
|
| yield_with |
yiled something without catch passed in para |
Type Definitions
| Generator |
the generator type |