37 releases (stable)
| 3.1.4 | Feb 11, 2026 |
|---|---|
| 3.1.3 | Dec 19, 2024 |
| 3.1.2 | Jul 25, 2024 |
| 3.1.0 | Jan 15, 2024 |
| 0.3.0 | Jun 26, 2017 |
#8 in #boolean
14,486,138 downloads per month
Used in 6,686 crates
(3,407 directly)
120KB
2K
SLoC
predicates-rs
An implementation of boolean-valued predicate functions in Rust.
Usage
First, add this to your Cargo.toml:
[dependencies]
predicates = "3.1.4"
Next, add this to your crate:
extern crate predicates;
use predicates::prelude::*;
For more information on using predicates, look at the documentation
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/license/mit)
at your option.
Credits
Big thanks to futures-rs, whose slick API design informed a lot of decisions made on the API design of this library.
Dependencies
~1.8–3MB
~51K SLoC