| Crates.io | heap_linear_array |
| lib.rs | heap_linear_array |
| version | 0.1.0 |
| created_at | 2026-01-18 17:43:10.803339+00 |
| updated_at | 2026-01-18 17:43:10.803339+00 |
| description | Simple linear memory array stored on the heap with a size determined at runtime. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2052733 |
| size | 4,448 |
//creation
let mut alpha: HeapArray<u64> = HeapArray::new(500);
//immutable acess (this is possible to do without setting alpha[0] because the structure is zero-initialized)
let beta:u64 = alpha[0];
//mutable acess
alpha[1] = 42;
//lenght
let delta:u64 = alpha.len();