BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

unzip-array-of-tuple

v0.1.0crates.io· Rust

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..

The verdict
Abandoned. Last published 3 years ago. No recent activity — look for a maintained alternative.
No recent activity — look for a maintained alternative.
Live from the crates.io registry · derived rules, not AI
How it scores
MaintenanceAbandoned
PopularityNiche
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 3 years ago.
Popularity
6 downloads / week
Security
No known advisories for this version (OSV).
License
Apache-2.0 OR MIT
Dependencies
No runtime dependencies
Recent releases
  • 0.1.03 years ago
unzip-array-of-tuple — 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.. (Rust / crates.io) — verdict, alternatives & security · Modules