Skip to content

A procedural macro helper to alleviate writing "decorators" that nest-wrap functions

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Zlib
LICENSE-ZLIB
Notifications You must be signed in to change notification settings

danielhenrymantilla/func_wrap.rs

::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.

About

A procedural macro helper to alleviate writing "decorators" that nest-wrap functions

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Zlib
LICENSE-ZLIB

Stars

Watchers

Forks

Packages

 
 
 

Languages