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.
54
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
45
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 | 54 | 45 |
| Total Downloads | 47.7K | 2.2M | 340.7K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 64 | 10 |
| Releases | 3 | 9 | 2 |
| Last Updated | 2102d ago | 806d ago | 1516d ago |
| Age | 5y 9m | 6y 11m | 4y 1m |
Health Breakdown
bind_match
Maintenance
4
Quality
16
Community
6
Popularity
6
Documentation
12
try_match
Maintenance
5
Quality
18
Community
11
Popularity
8
Documentation
12
assert_let_bind
Maintenance
3
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 54/100, but none of the options score above 80.
- •⚠ bind_match, try_match, assert_let_bind have not been updated in over a year.