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

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

#523 in Rust patterns

Download history 4/week @ 2024-11-14 1/week @ 2024-11-21 16/week @ 2024-11-28 18/week @ 2024-12-05 11/week @ 2024-12-12 1/week @ 2025-01-02 38/week @ 2025-01-09 23/week @ 2025-01-16 86/week @ 2025-01-23 50/week @ 2025-01-30 33/week @ 2025-02-06 49/week @ 2025-02-13 62/week @ 2025-02-20 60/week @ 2025-02-27

214 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