Decision Workspace
borrow vs struct-split vs partially
Side-by-side comparison of Rust crates
48
borrow
growingv2.0.0
Zero-overhead, safe implementation of partial borrows. This crate allows you to borrow selected fields from a struct and split structs into non-overlapping sets of borrowed fields.
37
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
53
partially
growingv0.2.1
Provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option
Core Metrics
| borrow | struct-split | partially | |
|---|---|---|---|
| Health Score | 48 | 37 | 53 |
| Total Downloads | 56.0K | 2.6K | 664.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2 | 0 | 1.4K |
| Releases | 9 | 3 | 4 |
| Last Updated | 367d ago | 697d ago | 993d ago |
| Age | 1y 11m | 1y 11m | 3y |
Health Breakdown
borrow
Maintenance
7
Quality
21
Community
4
Popularity
6
Documentation
10
struct-split
Maintenance
5
Quality
15
Community
3
Popularity
4
Documentation
10
partially
Maintenance
5
Quality
17
Community
14
Popularity
7
Documentation
10
Technical Details
| borrow | struct-split | partially | |
|---|---|---|---|
| Version | 2.0.0 | 0.1.3 | 0.2.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 3 |
| Crate Size | 20KB | 3KB | 5KB |
| Features | 3 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •partially leads with a health score of 53/100, but none of the options score above 80.
- •partially is depended on by 1.4K crates — strongest ecosystem trust.
- •⚠ borrow, struct-split, partially have not been updated in over a year.
- •struct-split, partially are pre-1.0 — API may change.