Skip to content

num_derive for newtypes #1

@cuviper

Description

@cuviper

From @gnzlbg on October 26, 2017 9:18

Say I want to implement some num traits for:

struct R64(f64);

Is there a macro in num_derive to do this? Currently FromPrimitive and ToPrimitive only work on enums.

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

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