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

#5 in Data structures

Download history 369236/week @ 2024-12-20 344351/week @ 2024-12-27 755955/week @ 2025-01-03 934921/week @ 2025-01-10 801486/week @ 2025-01-17 856761/week @ 2025-01-24 915226/week @ 2025-01-31 1038802/week @ 2025-02-07 940534/week @ 2025-02-14 1070431/week @ 2025-02-21 1102033/week @ 2025-02-28 1128868/week @ 2025-03-07 1115104/week @ 2025-03-14 1037827/week @ 2025-03-21 1021340/week @ 2025-03-28 851709/week @ 2025-04-04

4,246,691 downloads per month
Used in 2,958 crates (1,083 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.1–3MB
~55K SLoC