Files
rust/library
Matthias Krüger 1817de609b Rollup merge of #130822 - bjoernager:non-null-from-ref, r=dtolnay
Add `from_ref` and `from_mut` constructors to `core::ptr::NonNull`.

Relevant tracking issue: #130823

The `core::ptr::NonNull` type should have the convenience constructors `from_ref` and `from_mut` for parity with `core::ptr::from_ref` and `core::ptr::from_mut`.

Although the type in question already implements `From<&T>` and `From<&mut T>`, these new functions also carry the ability to be used in constant expressions (due to not being behind a trait).
2024-10-16 19:18:30 +02:00
..
2024-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-10-02 01:27:11 +08:00
2024-10-10 10:16:16 +00:00
2024-10-05 21:34:51 -05:00