Registry / utility / tiny-fn

tiny-fn

JSON →
library0.1.9rscratesunverified

Type erased closures on stack

# Cargo.toml [dependencies] tiny-fn = "0.1.9"
INSTALL
IMPORT
SIG · TINY-FN
T
tiny-fn
utilityrustv0.1.9
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.

tiny_fn
use tiny_fn::tiny_fn;

Create a type-erased closure stored on the stack

use tiny_fn::tiny_fn; tiny_fn! { fn MyClosure(i32) -> i32 } let f = MyClosure::new(|x| x * 2); assert_eq!(f(3), 6);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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