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 2166/week @ 2024-11-18 2140/week @ 2024-11-25 2101/week @ 2024-12-02 2057/week @ 2024-12-09 1704/week @ 2024-12-16 1047/week @ 2024-12-23 1089/week @ 2024-12-30 1920/week @ 2025-01-06 2353/week @ 2025-01-13 1949/week @ 2025-01-20 1433/week @ 2025-01-27 4606/week @ 2025-02-03 2202/week @ 2025-02-10 1566/week @ 2025-02-17 2043/week @ 2025-02-24 1411/week @ 2025-03-03

7,781 downloads per month
Used in 53 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