licenses.dev

scopeguard v1.2.0

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.

Published on

Licenses

Learn more about license information.

Package Licenses

Apache-2.0 OR MIT

Dependency Licenses

This package has no dependencies.
Last updated on

Copy the licenses badge code for the latest version:

[![licenses](https://licenses.dev/b/cargo/scopeguard)](https://licenses.dev/cargo/scopeguard)
<a href="https://licenses.dev/cargo/scopeguard">
  <img src="https://licenses.dev/b/cargo/scopeguard" alt="licenses" />
</a>

Or the licenses badge code for the 1.2.0 version:

[![licenses](https://licenses.dev/b/cargo/scopeguard/1.2.0)](https://licenses.dev/cargo/scopeguard/1.2.0)
<a href="https://licenses.dev/cargo/scopeguard/1.2.0">
  <img src="https://licenses.dev/b/cargo/scopeguard/1.2.0" alt="licenses" />
</a>
GitHub