Skip to content

optimize generic Duration usage #115

@PTaylor-us

Description

@PTaylor-us

Problem

Currently, a generic function cannot take either a Generic or named Duration/Rate. This is because Generic does not implement FixedPoint.

Solution

  • move associated const SCALING_FACTOR out of FixedPoint
  • move FixedPoint into Duration

This will a provide a much more ergonomic way of using a generic Duration and Rate types. I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions