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

#7 in Rust patterns

Download history 770170/week @ 2024-09-28 800639/week @ 2024-10-05 812268/week @ 2024-10-12 866304/week @ 2024-10-19 817464/week @ 2024-10-26 839752/week @ 2024-11-02 842622/week @ 2024-11-09 828511/week @ 2024-11-16 657666/week @ 2024-11-23 761725/week @ 2024-11-30 889436/week @ 2024-12-07 798627/week @ 2024-12-14 302104/week @ 2024-12-21 394434/week @ 2024-12-28 811648/week @ 2025-01-04 780617/week @ 2025-01-11

2,409,933 downloads per month
Used in 2,644 crates (1,012 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.2–3MB
~56K SLoC