36 releases (stable)

3.1.3 Dec 19, 2024
3.1.2 Jul 25, 2024
3.1.0 Jan 15, 2024
3.0.4 Sep 18, 2023
0.3.0 Jun 26, 2017

#8 in Rust patterns

Download history 861614/week @ 2024-10-23 806857/week @ 2024-10-30 822885/week @ 2024-11-06 876591/week @ 2024-11-13 793137/week @ 2024-11-20 645237/week @ 2024-11-27 817851/week @ 2024-12-04 859677/week @ 2024-12-11 609609/week @ 2024-12-18 286156/week @ 2024-12-25 582981/week @ 2025-01-01 884567/week @ 2025-01-08 848289/week @ 2025-01-15 845911/week @ 2025-01-22 866221/week @ 2025-01-29 816790/week @ 2025-02-05

3,561,951 downloads per month
Used in 2,735 crates (1,031 directly)

MIT/Apache

135KB
2.5K 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.3"

Next, add this to your crate:

extern crate predicates;

use predicates::prelude::*;

For more information on using predicates, look at the documentation

License

predicates-rs is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

Credits

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

Dependencies

~2.3–3.5MB
~56K SLoC