#traits #stable #fn #fn-mut #standard #fn-once #ones

no-std fn-traits

Provides function traits like the standard library ones, but can be used in stable Rust

4 releases

0.2.0 Aug 30, 2024
0.1.2 Jan 23, 2023
0.1.1 Jan 22, 2023
0.1.0 Jan 20, 2023

#350 in Rust patterns

Download history 7/week @ 2024-07-08 4/week @ 2024-07-22 26/week @ 2024-07-29 6/week @ 2024-08-05 7/week @ 2024-08-12 4/week @ 2024-08-19 160/week @ 2024-08-26 20/week @ 2024-09-02 4/week @ 2024-09-09 19/week @ 2024-09-16 56/week @ 2024-09-23 26/week @ 2024-09-30 9/week @ 2024-10-07 7/week @ 2024-10-14

99 downloads per month
Used in 4 crates (2 directly)

MIT license

44KB
1K SLoC

fn-traits

crates.io docs CI codecov Coverage Status

Provides function traits, like FnOnce, FnMut and Fn, but can be used in stable Rust.


lib.rs:

Provides FnOnce, FnMut and [Fn] traits like the standard library ones (FnOnce, FnMut and Fn), but can be used in stable Rust.

No runtime deps