func_wrap 0.1.3

Helper crate for procedural macro authors that wish to duplicate some received function inside its body, so as to be able to wrap with some prologue, epilogue, cache-ing, etc.
Documentation

::func_wrap

Repository Latest version Documentation MSRV License CI

Helper crate for procedural macro authors that wish to duplicate some received function inside its body, so as to be able to wrap with some prologue, epilogue, cache-ing, etc.

Examples

See https://docs.rs/require_unsafe_in_body for a real-life example of using it.