Attribute Macro cex_derive::cex[][src]

#[cex]

tag an fn with #[cex] to:

  1. enable “type pattern matching” in match expressions that are tagged with #[ty_pat]/#[ty_pat(gen_variants)]/#[ty_pat(gen A,B,..)]`.

  2. modify try(?) expressions to which append map_error() automatically.

  3. generate code for Result!()/ret!()/throw!() macro invocations.