Decision Workspace
bind_match vs try_match vs assert_let_bind
Side-by-side comparison of Rust crates
44
bind_match
growingv0.1.2
Convenience macro similar to `matches!` but binds to variables in the pattern and returns an `Option` of the result.
53
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
46
assert_let_bind
growingv0.1.1
A convenience macro for writing pattern-matching tests
Core Metrics
| bind_match | try_match | assert_let_bind | |
|---|---|---|---|
| Health Score | 44 | 53 | 46 |
| Total Downloads | 47.1K | 1.8M | 305.0K |
| 30d Downloads | 0 | 92.3K | 15.3K |
| Dependents | 1 | 64 | 10 |
| Releases | 3 | 9 | 2 |
| Last Updated | 1983d ago | 687d ago | 1397d ago |
| Age | 5y 5m | 6y 7m | 3y 10m |
Health Breakdown
bind_match
Maintenance
4
Quality
16
Community
6
Popularity
6
Documentation
12
try_match
Maintenance
5
Quality
18
Community
11
Popularity
7
Documentation
12
assert_let_bind
Maintenance
4
Quality
16
Community
9
Popularity
7
Documentation
10
Technical Details
| bind_match | try_match | assert_let_bind | |
|---|---|---|---|
| Version | 0.1.2 | 0.4.2 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 2 | 0 |
| Crate Size | 3KB | 14KB | 3KB |
| Features | 0 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.56 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •try_match leads with a health score of 53/100, but none of the options score above 80.
- •⚠ bind_match, try_match, assert_let_bind have not been updated in over a year.