#pointers #vec #ptr #slice #vector

pointer_vec

The PointerVec works same as the std Vec structure except the Vec has a size of 3 usize (pointer, length, capacity). This crate provides a replacement that has a size of 1 pointer.

2 releases

0.1.1 Oct 22, 2022
0.1.0 Oct 22, 2022

#2366 in Data structures

MIT/Apache

30KB
622 lines

Pointer-Vec

The PointerVec works same as the std Vec structure except the Vec has a size of 3 usize (pointer, length, capacity). This crate provides a replacement that has a size of 1 pointer.

Usage

directly replace Vec with PointerVec.

No runtime deps