6ace8a76cb
refactor NonZero, Shared, and Unique APIs Major difference is that I removed Deref impls, as apparently LLVM has trouble maintaining metadata with a `&ptr -> &ptr` API. This was cited as a blocker for ever stabilizing this API. It wasn't that ergonomic anyway. * Added `get` to NonZero to replace Deref impl * Added `ptr` getter to Shared/Unique to replace Deref impl * Added Unique's `get` and `get_mut` conveniences to Shared * Deprecated `as_mut_ptr` on Shared in favour of `ptr` Note that Shared used to primarily expose only `*const` but there isn't a good justification for that, so I made it `*mut`. |
||
---|---|---|
.. | ||
arc.rs | ||
boxed_test.rs | ||
boxed.rs | ||
Cargo.toml | ||
heap.rs | ||
lib.rs | ||
macros.rs | ||
oom.rs | ||
raw_vec.rs | ||
rc.rs | ||
str.rs |