Registry / utility / enclose

enclose

JSON →
library1.2.1rscratesunverified

A convenient macro for cloning values into a closure.

# Cargo.toml [dependencies] enclose = "1.2.1"
INSTALL
IMPORT
SIG · ENCLOSE
E
enclose
utilityrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

enclose
use enclose::enclose;

Clones a variable into a closure using the enclose macro.

use enclose::enclose; fn main() { let x = 42; let closure = enclose!((x) move || println!("{}", x)); closure(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
enclose — cargo add enclose · libregistry