rust/library/core/src/ptr
Matthias Krüger 3c07321541
Rollup merge of #119411 - yotamofek:array-ptr-get, r=Nilstrieb
Add as_(mut_)ptr and as_(mut_)slice to raw array pointers

Hey, first time contributing to the standard libraries so not completely sure about the process.

These functions are complementary to the ones being added in #74265 . I found them missing on array pointers.

See also:
- ACP: https://github.com/rust-lang/libs-team/issues/321
- Tracking issue: #119834
2024-03-17 08:23:25 +01:00
..
alignment.rs Distinguish between library and lang UB in assert_unsafe_precondition 2024-03-08 18:53:58 -05:00
const_ptr.rs Add as_(mut_)ptr and as_(mut_)slice to raw array pointers 2024-03-16 20:15:30 +00:00
metadata.rs Fix typo in metadata.rs doc comment 2024-02-22 09:30:03 +01:00
mod.rs core: optimize ptr::replace 2024-03-16 17:51:00 +01:00
mut_ptr.rs Add as_(mut_)ptr and as_(mut_)slice to raw array pointers 2024-03-16 20:15:30 +00:00
non_null.rs Distinguish between library and lang UB in assert_unsafe_precondition 2024-03-08 18:53:58 -05:00
unique.rs Add and use Unique::as_non_null_ptr 2024-02-08 19:56:30 -05:00