[−][src]Crate generator
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 type 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_set_para | set current coroutine para in user space |
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_ | yield and get the send para |
yield_from |
|
yield_with | yield something without catch passed in para |
Type Definitions
Generator | the generator type |