Devadex

scopeguard

crates   Free
Rust

A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.

Get it → github.com
Related:
rust

Found on Devadex — the discovery index for independent software the big search engines bury. More from crates.

Report this listing