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

#9 in Rust patterns

Download history 578799/week @ 2024-01-28 574724/week @ 2024-02-04 579629/week @ 2024-02-11 634711/week @ 2024-02-18 668674/week @ 2024-02-25 619138/week @ 2024-03-03 589261/week @ 2024-03-10 596617/week @ 2024-03-17 597092/week @ 2024-03-24 634660/week @ 2024-03-31 615329/week @ 2024-04-07 633116/week @ 2024-04-14 644079/week @ 2024-04-21 578115/week @ 2024-04-28 596085/week @ 2024-05-05 602207/week @ 2024-05-12

2,454,723 downloads per month
Used in 2,076 crates (836 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
~56K SLoC