scopeguard
crates.io v1.2.08,723,053 weekly downloads · 0 Dependencies
Source data as of:
Summary
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!, deferonunwind!, deferonsuccess! as shorthands for guards with one of the implemented strategies.
cargo add scopeguard
- Ecosystemcrates.io
- Version1.2.0
- Weekly downloads8,723,053
- License—
- Dependencies0
- Last release2023-07-17
- First published2015-04-30
Registry values
Reproduced verbatim from the official registry, with the source named on each value.
Description
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!, deferonunwind!, deferonsuccess! as shorthands for guards with one of the implemented strategies.
Registry-supplied description, cleaned to plain text. Source: crates.io (Rust).
Show original (raw) description
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.
Derived indices (computation method published)
Quanteta-computed from the registry values below. This is a derived index, not a measured registry metric. See the formula on the Data & Sources page.