Crate mco_gen

source ·
Expand description

generator

Rust generator library

Re-exports

  • pub use crate::yield_::done;

Macros

  • it’s a special return instruction that yield nothing but only terminate the generator safely

Structs

  • Generator helper
  • 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

  • yield panic error types

Functions

Type Aliases

  • the generator type, the functor passed to it must be Send
  • the local generator type, can’t Send