Tracking Issue for Duration::from_nanos_u128 · Issue #139201 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@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

Unresolved Questions

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