Skip to content

Tracking issue for duration_float #54361

Closed
@newpavlov

Description

Rust PRs: #52813, #59102

This feature adds the following float related methods to Duration:

  • as_secs_f64(&self) -> f64
  • as_secs_f32(&self) -> f32
  • from_secs_f64(secs: f64) -> Duration
  • from_secs_f32(secs: f32) -> Duration
  • mul_f64(self, rhs: f64) -> Duration
  • mul_f32(self, rhs: f32) -> Duration
  • div_f64(self, rhs: f64) -> Duration
  • div_f32(self, rhs: f64) -> Duration

div_duration methods are tracked in #63139.

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.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