#predicate #match #logic #boolean #combinatorial

dev predicates

An implementation of boolean-valued predicate functions

37 releases (stable)

3.1.4 Feb 11, 2026
3.1.3 Dec 19, 2024
3.1.2 Jul 25, 2024
3.1.0 Jan 15, 2024
0.3.0 Jun 26, 2017

#8 in #boolean

Download history 459687/week @ 2026-03-03 2900457/week @ 2026-03-10 2680723/week @ 2026-03-17 2578780/week @ 2026-03-24 2708970/week @ 2026-03-31 2878139/week @ 2026-04-07 2988056/week @ 2026-04-14 3190716/week @ 2026-04-21 3310326/week @ 2026-04-28 3379370/week @ 2026-05-05 3928994/week @ 2026-05-12 3615929/week @ 2026-05-19 3586786/week @ 2026-05-26 2787994/week @ 2026-06-02

14,486,138 downloads per month
Used in 6,686 crates (3,407 directly)

MIT/Apache

120KB
2K SLoC

predicates-rs

An implementation of boolean-valued predicate functions in Rust.

Documentation License Crates.io

Changelog

Usage

First, add this to your Cargo.toml:

[dependencies]
predicates = "3.1.4"

Next, add this to your crate:

extern crate predicates;

use predicates::prelude::*;

For more information on using predicates, look at the documentation

License

Licensed under either of

at your option.

Credits

Big thanks to futures-rs, whose slick API design informed a lot of decisions made on the API design of this library.

Dependencies

~1.8–3MB
~51K SLoC