1 unstable release
|0.1.0||Oct 28, 2018|
#95 in Memory management
5 downloads per month
Used in 1 crate
This is an attempt of reducing erros with manual memory allocation in Rust. See docs for more details.
Owned Allocations. A crate to help reducing manual memory management errors.
The idea is to use a type like
UninitAlloc for uninitialized dynamic
allocations. After initializing it, you have a
OwnedAlloc which is pretty
similar to a
Box. However, unlike a
Box, you may move the value out from
OwnedAlloc and getting an
For vec-like structures, a type
RawVec is available, pretty similar to the
one used by the standard library. Currently, no other help is provided for
There is also a type
Cache, which is actually more general than
allocation, but may be useful for allocations. It can save unused
allocations requested on a tight loop.