Decision Workspace
tuple-map vs keepops vs unzip-array-of-tuple
Side-by-side comparison of Rust crates
map methods for tuple
Extension traits for keeping the input of mapping functions
This package currently provides one function that takes in an array containing tuples of two types; the function then returns two arrays, the first containing all the first elements of the tuples, and the second array containing the second elements of the tuples. This functionality is available in iterators through unzip, but unzip can only return collections which implement Extend; which primitive arrays do not. Therefore, unzip works fine for Vec or other dynamic types, but not for simple, beautiful arrays, with lengths known at compiletime. My implementation is hopefully quite efficient, as it just moves data around, without using too much costly abstractions like std::array::from_fn. This crate has 4 tests that I think cover basically everything; still it could be unsound..
Core Metrics
| tuple-map | keepops | unzip-array-of-tuple | |
|---|---|---|---|
| Health Score | 43 | 40 | 35 |
| Total Downloads | 146.1K | 2.7K | 18.5K |
| 30d Downloads | 600 | 4 | 19 |
| Dependents | 38 | 0 | 0 |
| Releases | 5 | 2 | 1 |
| Last Updated | 2877d ago | 1205d ago | 1127d ago |
| Age | 8y | 3y 4m | 3y 1m |
Health Breakdown
Technical Details
| tuple-map | keepops | unzip-array-of-tuple | |
|---|---|---|---|
| Version | 0.4.0 | 0.0.2 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 6KB | 4KB | 2KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •tuple-map leads with a health score of 43/100, but none of the options score above 80.
- •⚠ tuple-map, keepops, unzip-array-of-tuple have not been updated in over a year.