Skip to content

Implement One and Zero from num-traits #113

@ThomasdenH

Description

@ThomasdenH

It would be useful if any Field would implement the One and Zero traits from num-traits (and perhaps even more?). One application would be the use in nalgebra, see for example the requirements to multiply two matrices there. See also this issue.

I think it would make most sense to put it behind an enabled-by-default feature. It would be possible to have a blanket implementation for Field, or alternatively an implementation could be added to the derive macro. Which would be the best way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions