Hi,

how do you decide whether a trait should only be implemented for the value type or also for references?

To keep it simple: imagine a linear algebra library that implements a Vector type. Should the Add trait be implemented only for the type Vector or also for &Vector and &mut Vector?

Are there general guidelines or special cases to consider?

Thanks in advance.