Skip to content

Wrapping neg is not implemented for PrimInt #10

Closed
@cuviper

Description

@cuviper

From @gnzlbg on December 23, 2015 18:40

When constraining on PrimInt there is no way of performing wrapping neg in a generic way.

The "generic" way to do this seems to be to call the .wrapping_neg() method which is offered by all primitive integers (but not by PrimInt).

Copied from original issue: rust-num/num#146

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions