Attribute Macro cex_derive::cex_env_log[][src]

#[cex_env_log]

tag an fn with #[cex_env_log] 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_log() automatically.

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

  4. backtrace enabled depending on the environment variable RUST_BACKTRACE.