Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tracking Issue for nonzero_from_str_radix #152193

Copy link
Copy link

Description

@sorairolake
Issue body actions

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

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.