mccolljr / segvec

SegVec data structure for rust. Similar to Vec, but allocates memory in chunks of increasing size.
MIT License
35 stars 5 forks source link

Audit & document `unsafe` usages #2

Open mccolljr opened 3 years ago

mccolljr commented 3 years ago

There are a few usages of unsafe - I tried to cover these cases in tests, but I need to make a pass through the code to add // Safety: ... comments + triple-check that things are doing exactly what I think they are.