clown

Crates.ioclown
lib.rsclown
version1.1.2
created_at2023-08-16 09:27:34.132021+00
updated_at2025-04-15 11:39:54.246172+00
descriptionapproximation of capture-by-closure lambdas
homepage
repositoryhttps://github.com/zygomedia/clown
max_upload_size
id945670
size9,626
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), slip!(baz.bop))

into this:

{
    let __honk_0 = (foo.bar).clone();
	let __slip_0 = baz.bop;
    move || do_call(__honk_0, __slip_0)
}
Commit count: 16

cargo fmt