1 unstable release

0.1.0 Apr 19, 2020

#19 in #pinned

MIT license

18KB
239 lines

Slab

Slab-allocator with pinned elements.

Much of this code is directly taken from slab and should have roughly the same interface. If you see a function missing that you'd like implemented or a feature flag to configure CHUNK_SIZE through const generics, pull requests are welcome!

Usage

For now, you should see the documentation for slab for general usage.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pinned_slab by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

This is a slab-allocator inspired by the slab crate, with the main difference being it allocates pinned fixed sized arrays instead of using a resizable Vec. This lets us guarantee that none of the pooled objects will be moved unless we first remove it from the pool.

Dependencies

~79KB