|
fn div_euclid(&self, v: &Self) -> Self; |
Is there any particular reason the functions of trait Euclid takes their args by reference, instead of by value? In std f32::rem_euclid also takes them by value, not reference, making them incompatible.
Also, should trait Float depend on this trait to better match std?
num-traits/src/ops/euclid.rs
Line 23 in 022f250
Is there any particular reason the functions of
trait Euclidtakes their args by reference, instead of by value? In stdf32::rem_euclidalso takes them by value, not reference, making them incompatible.Also, should
trait Floatdepend on this trait to better match std?