5 releases (breaking)
0.5.0 | Dec 19, 2023 |
---|---|
0.4.0 | Nov 28, 2023 |
0.3.0 | May 15, 2023 |
0.2.0 | May 14, 2023 |
0.1.0 | May 12, 2023 |
#1680 in Rust patterns
345KB
8K
SLoC
callable
lib.rs
:
let callable = callable![fn(&_) -> _](u8::clone);
assert_eq!(callable.call_fn((&1,)), 1);
assert_eq!(callable.emit(&2), 2);
let callable = callable.provide_first_argument_refed(3);
assert_eq!(callable.call_fn(()), 3);