assert-rs / predicates-rs

Boolean-valued predicate functions in Rust
docs.rs/predicates
Apache License 2.0
168 stars 29 forks source link

Option predicate #157

Open t-moe opened 8 months ago

t-moe commented 8 months ago

I was wondering whether we could add an Option predicate.

e.g. that i can type something like predicate::some(predicate::gt(3)) to match an Option<u32> with the variant Some(13).

epage commented 8 months ago

Seems reasonable.