num-traits icon indicating copy to clipboard operation
num-traits copied to clipboard

Remove the `Copy` trait

Open LucaCiucci opened this issue 2 years ago • 2 comments

This was requested in #245. I just removed the Copy bound from the Real and replaced with Clone in Float. This would be a breaking change.

LucaCiucci avatar Aug 18 '23 12:08 LucaCiucci

I for one would love that as it would enable quite a bit of use cases for non-copyable types. 👍

nsabovic avatar May 24 '24 12:05 nsabovic

Yeah, I think this would be really useful for working with automatic differentiation or arbitrary precision types. AFAIK currently the only way to use rust-num with these types is using a [patch], but this is not feasible in many scenarios where you would have to patch many crates to make things work.

LucaCiucci avatar May 24 '24 13:05 LucaCiucci