num-traits
num-traits copied to clipboard
Why not `checked_pow` as a trait method
Hi!
This is only a design question about the current implementation of checked_pow as a function. Why is it implemented as a function instead of using a trait method as the rest of the checked operations?
I'm implementing a wrapper over these functions, and I want to know if you found some issues that forced you to implement it as a plain function.
Thanks!
I think that's just historical -- it was added way back in rust-num/num#162, when pow was also still only a function, not yet a trait.