Skip to content

Implement clamp #376

Closed
Closed
@jacg

Description

@jacg

It would be useful to have uom support clamp.

My attempt at implementing it ran into problems caused by there being different definitions for

  • {std,core}::cmp::Ord::clamp
  • {f32,f64}::clamp

and my not knowing how to treat these separately inside uom's implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions