Tracking Issue for NonZeroXxx::from_mut/from_mut_unchecked (nonzero_from_mut) #106290
Open
2 of 4 tasks
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(nonzero_from_mut)]
This is a tracking issue for the associated functions
NonZeroXxx::from_mut
andNonZeroXxx::from_mut_unchecked
.These associated functions allow converting a mutable reference to a primitive integer (
&mut xxx
) into the equivalent&mut NonZeroXxx
, with or without validation. The safety is guaranteed by the mutable reference, but currently there is no way to perform this conversion without relying on an unsafe transparent cast.Public API
Steps / History
Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: