Crate defer_lite[][src]

Expand description

A Rust implementation of Go’s defer statement as the defer! macro, which executes a block of code when the surrounding scope ends.

This crate focuses on providing a lightweight, high-performance, no_std implementation of the defer! macro.

Usage

Add the dependency in your Cargo.toml:

[dependencies]
defer-lite = "1.0.0"

Macros

Executes a block of code when the surrounding scope ends.