Skip to content

num_derive for newtypes #341

@gnzlbg

Description

@gnzlbg

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions