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 Data structures

Download history 866197/week @ 2025-01-29 1005066/week @ 2025-02-05 971646/week @ 2025-02-12 1034966/week @ 2025-02-19 1072285/week @ 2025-02-26 1115772/week @ 2025-03-05 1142838/week @ 2025-03-12 1068102/week @ 2025-03-19 1033104/week @ 2025-03-26 1011669/week @ 2025-04-02 1041274/week @ 2025-04-09 1008776/week @ 2025-04-16 1066970/week @ 2025-04-23 1004819/week @ 2025-04-30 1082372/week @ 2025-05-07 878541/week @ 2025-05-14

4,243,668 downloads per month
Used in 3,062 crates (1,133 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–3.5MB
~56K SLoC