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 759595/week @ 2024-09-23 775480/week @ 2024-09-30 803984/week @ 2024-10-07 808117/week @ 2024-10-14 864485/week @ 2024-10-21 808240/week @ 2024-10-28 847658/week @ 2024-11-04 852393/week @ 2024-11-11 815801/week @ 2024-11-18 652603/week @ 2024-11-25 781753/week @ 2024-12-02 879761/week @ 2024-12-09 791198/week @ 2024-12-16 298211/week @ 2024-12-23 404545/week @ 2024-12-30 793787/week @ 2025-01-06

2,317,742 downloads per month
Used in 2,634 crates (1,009 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
~55K SLoC