35 releases (stable)

3.1.2 Jul 25, 2024
3.1.0 Jan 15, 2024
3.0.4 Sep 18, 2023
3.0.3 Apr 13, 2023
0.3.0 Jun 26, 2017

#8 in Rust patterns

Download history 743819/week @ 2024-08-22 699008/week @ 2024-08-29 770736/week @ 2024-09-05 707562/week @ 2024-09-12 712007/week @ 2024-09-19 761916/week @ 2024-09-26 798324/week @ 2024-10-03 787791/week @ 2024-10-10 858501/week @ 2024-10-17 865460/week @ 2024-10-24 792774/week @ 2024-10-31 820789/week @ 2024-11-07 887559/week @ 2024-11-14 751948/week @ 2024-11-21 684453/week @ 2024-11-28 663030/week @ 2024-12-05

3,140,039 downloads per month
Used in 2,569 crates (987 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.2"

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.2–3MB
~56K SLoC