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?
It would be useful if any
Fieldwould implement theOneandZerotraits fromnum-traits(and perhaps even more?). One application would be the use innalgebra, 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?