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 461732/week @ 2024-01-03 497271/week @ 2024-01-10 593879/week @ 2024-01-17 578008/week @ 2024-01-24 581790/week @ 2024-01-31 578354/week @ 2024-02-07 582191/week @ 2024-02-14 674656/week @ 2024-02-21 640300/week @ 2024-02-28 612891/week @ 2024-03-06 578468/week @ 2024-03-13 610650/week @ 2024-03-20 591782/week @ 2024-03-27 643378/week @ 2024-04-03 622679/week @ 2024-04-10 515293/week @ 2024-04-17

2,487,171 downloads per month
Used in 2,041 crates (826 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–3.5MB
~55K SLoC