mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
041f6668b5
Add `Atomic*::from_ptr` This PR adds functions in the following form to all atomic types: ```rust impl AtomicT { pub const unsafe fn from_ptr<'a>(ptr: *mut T) -> &'a AtomicT; } ``` r? `@m-ou-se` (we've talked about it before) I'm not sure about docs & safety requirements, I'd appreciate some feedback on them. |
||
---|---|---|
.. | ||
alloc | ||
backtrace@07872f28cd | ||
core | ||
panic_abort | ||
panic_unwind | ||
portable-simd | ||
proc_macro | ||
profiler_builtins | ||
rtstartup | ||
rustc-std-workspace-alloc | ||
rustc-std-workspace-core | ||
rustc-std-workspace-std | ||
std | ||
stdarch@a0c30f3e3c | ||
test | ||
unwind |