rust/library/core/src/ptr
Martin Habovstiak 1a96623513 Implemented const casts of raw pointers
This adds `as_mut()` method for `*const T` and `as_const()` for `*mut T`
which are intended to make casting of consts safer. This was discussed
in the [internals discussion][discussion].

[discussion]: https://internals.rust-lang.org/t/casting-constness-can-be-risky-heres-a-simple-fix/15933
2022-01-08 18:04:51 +01:00
..
const_ptr.rs Implemented const casts of raw pointers 2022-01-08 18:04:51 +01:00
metadata.rs Fix a few misspellings. 2021-06-25 13:18:56 -07:00
mod.rs Add #[must_use] to mem/ptr functions 2021-10-30 18:54:48 -04:00
mut_ptr.rs Implemented const casts of raw pointers 2022-01-08 18:04:51 +01:00
non_null.rs Rollup merge of #91823 - woppopo:const_ptr_as_ref, r=lcnr 2021-12-21 08:33:40 +01:00
unique.rs Make Uniques methods const 2021-12-12 04:27:43 +09:00