-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
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 RFCS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.Status: The implementation is "complete" but it needs time to bake.T-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.
Description
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: Add Duration::from_nanos_u128 #145969
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Is this the best name we can come up with?
Footnotes
Metadata
Metadata
Assignees
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 RFCS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.Status: The implementation is "complete" but it needs time to bake.T-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.