Skip to content

Discrepancy between as_nanos API and from_nanos API #103332

Closed as not planned
Closed as not planned
@mlej8

Description

@mlej8

The as_nanos API in https://doc.rust-lang.org/src/core/time.rs.html#462 returns u128, however the from_nanos API https://doc.rust-lang.org/src/core/time.rs.html#276 only accepts u64. Can we make it u128 so that it is consistent ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-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