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 567786/week @ 2024-01-25 582022/week @ 2024-02-01 588662/week @ 2024-02-08 582366/week @ 2024-02-15 681156/week @ 2024-02-22 638990/week @ 2024-02-29 606198/week @ 2024-03-07 582231/week @ 2024-03-14 603456/week @ 2024-03-21 617402/week @ 2024-03-28 623184/week @ 2024-04-04 626557/week @ 2024-04-11 639530/week @ 2024-04-18 600251/week @ 2024-04-25 600696/week @ 2024-05-02 484565/week @ 2024-05-09

2,441,986 downloads per month
Used in 2,176 crates (833 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.2–3MB
~55K SLoC