#traits #fn-once #fn-mut #standard #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

#1817 in Rust patterns

Download history 66/week @ 2025-09-25 234/week @ 2025-10-02 314/week @ 2025-10-09 112/week @ 2025-10-16 57/week @ 2025-10-23 53/week @ 2025-10-30 85/week @ 2025-11-06 25/week @ 2025-11-13 72/week @ 2025-11-20 39/week @ 2025-11-27 72/week @ 2025-12-04 50/week @ 2025-12-11 93/week @ 2025-12-18 13/week @ 2025-12-25 102/week @ 2026-01-01 92/week @ 2026-01-08

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

MIT license

44KB
1K SLoC

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


fn-traits

crates.io docs CI codecov Coverage Status

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

No runtime deps