Feature gate: #![feature(nonzero_from_str_radix)]
This is a tracking issue for the from_str_radix of NonZero<T> where T is one of the primitive integer types.
This method is identical to the from_str_radix method of the primitive integer types, except that it can return IntErrorKind::Zero as an error if the string represents 0. This method is similar to the NonZero::<T>::from_str method, except that it can parse both decimal integers and non-decimal integers.
Public API
// core::num
// Where `T` is one of the primitive integer types.
impl NonZero<T> {
pub const fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseIntError>;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(nonzero_from_str_radix)]This is a tracking issue for the
from_str_radixofNonZero<T>whereTis one of the primitive integer types.This method is identical to the
from_str_radixmethod of the primitive integer types, except that it can returnIntErrorKind::Zeroas an error if the string represents 0. This method is similar to theNonZero::<T>::from_strmethod, except that it can parse both decimal integers and non-decimal integers.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)NonZero::<T>::from_str_radixlibs-team#548NonZero::<T>::from_str_radix#151945nonzero_from_str_radix#157877Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩