5 releases

Uses old Rust 2015

0.1.1 Feb 2, 2019
0.1.0 Jan 30, 2018
0.0.3 Mar 13, 2017
0.0.2 Feb 1, 2017
0.0.1 Feb 1, 2017

#6 in #boxing

Download history 2826/week @ 2024-03-09 2913/week @ 2024-03-16 2747/week @ 2024-03-23 3279/week @ 2024-03-30 2549/week @ 2024-04-06 3220/week @ 2024-04-13 3042/week @ 2024-04-20 2814/week @ 2024-04-27 2940/week @ 2024-05-04 2618/week @ 2024-05-11 3134/week @ 2024-05-18 2586/week @ 2024-05-25 3088/week @ 2024-06-01 2859/week @ 2024-06-08 3095/week @ 2024-06-15 2571/week @ 2024-06-22

12,002 downloads per month
Used in 56 crates (4 directly)

MIT license

17KB
355 lines

Travis Build Status AppVeyor Status crates.io MIT licensed

This library provide a safe way to box FnOnce types. It doesn't use any unstable features and is therefore fully compatible with rust stable.

This library is provided because Box<FnOnce()> doesn't work yet, and Box<FnBox()> will never be available in rust stable.

The documentation for master is located at https://stbuehler.github.io/rustdocs/boxfnonce/boxfnonce/; released versions are documented at https://docs.rs/boxfnonce.


lib.rs:

See BoxFnOnce and SendBoxFnOnce.

No runtime deps