Files
rust/library
Matthias Krüger 041f6668b5 Rollup merge of #108540 - WaffleLapkin:atomic_thingy_from_thingy_pointer, r=m-ou-se
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.
2023-03-03 20:45:00 +01:00
..
2022-09-02 16:09:58 -04:00
2023-01-21 22:06:42 -05:00
2022-06-03 17:16:41 -04:00
2022-12-29 11:22:13 +01:00
2023-02-24 20:45:00 +03:00
2023-02-28 15:59:47 +01:00