Skip to content

Tracking Issue for Duration::from_nanos_u128 #139201

@RalfJung

Description

@RalfJung

Feature gate: #![feature(duration_from_nanos_u128)]

This is a tracking issue for Duration::from_nanos_u128. See the ACP at rust-lang/libs-team#567.

Public API

// std::time

impl Duration {
    /// Creates a new Duration from the specified number of nanoseconds.
    ///
    /// # Panics
    ///
    /// Panics if the given number of nanoseconds overflows the Duration size.
    pub fn from_nanos_u128(nanos: u128) -> Duration;
}

Steps / History

  • Implementation: #...
  • Final comment period (FCP)1
  • Stabilization PR

Unresolved Questions

  • Is this the best name we can come up with?

Footnotes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions