generate_macros!() { /* proc-macro */ }Expand description
Generate macros with an embedded Payload type.
Each generated macro has a counterpart in the nok crate that requires the Payload type to
be provided as argument.
Generated macros and their counterparts:
error->nok::error_terr->nok::err_tto_err_msg->nok::to_err_msg_tto_err_msg_dbg->nok::to_err_msg_dbgmap_err->nok::map_err_tmap_err_dbg->nok::map_err_dbg_treplace->nok::replace_treplace_err->nok::replace_err_tverify->nok::verify_tok_or->nok::ok_or_t
Arguments are expected as a list of <ident>: <expr>’s separated by ,.
(required) payload_type: #[macro_export]
else pub(crate) use <macro>; is used