| Crates.io | hexga_array |
| lib.rs | hexga_array |
| version | 0.0.11-beta.3 |
| created_at | 2025-03-28 17:26:06.752243+00 |
| updated_at | 2025-08-12 19:05:53.129304+00 |
| description | A crate that impl trait / new functions for array. |
| homepage | https://github.com/Thomas-Mewily/hexga |
| repository | https://github.com/Thomas-Mewily/hexga |
| max_upload_size | |
| id | 1609902 |
| size | 17,326 |
🚧 Warning: Experimental Crate! 🚧
This crate is currently in beta and experimental.
It is subject to breaking changes in future releases.
Use it at your own risk, and keep in mind that the API may change in future versions.
Define useful extensions methods on array, like :
map_with, (because there is no zip fn on array https://github.com/rust-lang/rust/pull/112096 because zip is "eager" : doing array1.zip(array2).map() is bad, is is better to have only one function map_with, that will do both at once to avoid changing the array layout in memory for an array of tuple. Doing the operation on 2 different array allow the compiler to use SIMD instruction)
all_with, any_with
get, get_mut, set, with, replace...
use hexga_array::*;
assert_eq!([1,2,3].map_with([3,2,1],|a,b| a + b), [4,4,4]);
Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.