clown

Crates.ioclown
lib.rsclown
version1.1.0
sourcesrc
created_at2023-08-16 09:27:34.132021
updated_at2023-08-17 12:49:03.420874
descriptionapproximation of capture-by-closure lambdas
homepage
repositoryhttps://github.com/GRDigital/clown
max_upload_size
id945670
size6,390
Ihor Ranchynskyi (Awpteamoose)

documentation

README

clown

Crate Info API Docs

An approximation of "capture-by-clone" lambdas in Rust.
Requires nightly and #![feature(proc_macro_hygiene, stmt_expr_attributes)]

Turns this:

#[clown] || do_call(honk!(foo.bar))

into this:

{
    let __honk_0 = (foo.bar).clone();
    move || do_call(__honk_0)
}
Commit count: 9

cargo fmt