Scope guard which will run a closure even out of scope
This package provides 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.
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |