licenses.dev

scopeguard v0.3.3

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 0.3.3 version:

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