Crates.io | header-vec |
lib.rs | header-vec |
version | 0.1.3 |
source | src |
created_at | 2021-07-07 20:10:12.801386 |
updated_at | 2024-09-17 03:58:05.59195 |
description | Vector with user-specified header, length, capacity, and array elements all stored on the heap together |
homepage | |
repository | https://github.com/rust-cv/header-vec |
max_upload_size | |
id | 420025 |
size | 23,747 |
Allows one to store a header struct and a vector all inline in the same memory on the heap and share weak versions for minimizing random lookups in data structures
If you use this without creating a weak ptr, it is safe. It is unsafe to create a weak pointer because you now have aliasing.