rust/library/core/src/ptr
Trevor Gross 51734a8a6d
Rollup merge of #125897 - RalfJung:from-ref, r=Amanieu
from_ref, from_mut: clarify documentation

This was brought up [here](https://github.com/rust-lang/rust/issues/56604#issuecomment-2143193486). The domain of quantification is generally always constrained by the type in the type signature, and I am not sure it's always worth spelling that out explicitly as that makes things exceedingly verbose. But since this was explicitly brought up, let's clarify.
2024-07-27 13:32:56 -04:00
..
alignment.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00
const_ptr.rs offset_from intrinsic: always allow pointers to point to the same address 2024-07-06 17:14:26 +02:00
metadata.rs ptr::metadata: update comment on vtable_ptr work-around 2024-07-17 13:56:25 +02:00
mod.rs Rollup merge of #125897 - RalfJung:from-ref, r=Amanieu 2024-07-27 13:32:56 -04:00
mut_ptr.rs offset_from intrinsic: always allow pointers to point to the same address 2024-07-06 17:14:26 +02:00
non_null.rs Rollup merge of #124921 - RalfJung:offset-from-same-addr, r=oli-obk 2024-07-15 21:11:47 +02:00
unique.rs Add and use Unique::as_non_null_ptr 2024-02-08 19:56:30 -05:00