34 releases (stable)

3.1.0 Jan 15, 2024
3.0.4 Sep 18, 2023
3.0.3 Apr 13, 2023
3.0.2 Mar 24, 2023
0.3.0 Jun 26, 2017

#10 in Rust patterns

Download history 529100/week @ 2024-01-12 600210/week @ 2024-01-19 566131/week @ 2024-01-26 585764/week @ 2024-02-02 579873/week @ 2024-02-09 601484/week @ 2024-02-16 686700/week @ 2024-02-23 627270/week @ 2024-03-01 603752/week @ 2024-03-08 585729/week @ 2024-03-15 608431/week @ 2024-03-22 619998/week @ 2024-03-29 612566/week @ 2024-04-05 635345/week @ 2024-04-12 648925/week @ 2024-04-19 476962/week @ 2024-04-26

2,492,776 downloads per month
Used in 2,049 crates (830 directly)

MIT/Apache

130KB
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.0"

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
~55K SLoC