A scope guard will run a given closure when it goes out of scope, even if the code between panics. (as long as panic doesn't abort)
Crate features:
use_std- Enabled by default. Enables the
OnUnwindstrategy. - Disable to use
no_std.
- Enabled by default. Enables the