mbox
mbox copied to clipboard
malloc-based Box implementation for Rust.
Hey, I've opened a few PRs against this repo because we intend to use it in the future in [`objc`](https://github.com/SSheldon/rust-objc) (see https://github.com/SSheldon/rust-objc/pull/72), and in my [fork of that project](https://github.com/madsmtm/objc2). So,...
Hide `free`, `mbox` and `sentinel` modules, and instead export their contents in the top-level crate instead. The library has few enough items that it doesn't really make sense to separate...
For better feature parity with `Box`. `impl From for Pin` and `impl From for MBox`
Mostly my personal preferences. I know the `#![deny(unsafe_op_in_unsafe_fn)]` is noisy, but it _is_ really helpful when you want to start better documenting your unsafe code!
This brings us closer to feature-parity with [`malloced`](https://github.com/nvzqz/malloced), and is generally just a really nice thing to have.
The crate documentation says this about `MArray`: > `MArray` — A null-terminated array, which can be used to represent e.g. array of C strings terminated by a null pointer. However,...