#header #heap #vec #graph #vector #version

no-std header-vec

Vector with user-specified header, length, capacity, and array elements all stored on the heap together

3 releases

0.1.2 Aug 16, 2021
0.1.1 Aug 15, 2021
0.1.0 Jul 7, 2021

#270 in No standard library

Download history 27/week @ 2024-02-24 3/week @ 2024-03-02 6/week @ 2024-03-09 3/week @ 2024-03-16 46/week @ 2024-03-30 14/week @ 2024-04-06 2/week @ 2024-04-13

62 downloads per month
Used in hgg

MIT license

16KB
271 lines

header-vec

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.

No runtime deps