Commits
Click on a commit to change the comparison rangefeat(allocator): add `Box::as_non_null` method (#15321)
Add a method `Box::as_non_null` which returns a `NonNull` pointer to the `Box`'s contents.
Implemented as a static method `Box::as_non_null(boxed)` instead of `boxed.as_non_null()`, to avoid clashing with any `as_non_null` method on `T`, available via deref. This pattern follows stdlib.14 days ago
by overlookmotel