3 ms·
> (Note that `a.add(b)` would work if a is of type A and &A implements Add but A doesn’t, because of autoref/autoderef in method calls, while the other three ap
by cesarb 8y ago
> (Note that `a.add(b)` would work if a is of type A and &A implements Add but A doesn’t, because of autoref/autoderef in method calls, while the other three approaches would not work, and would instead want you to write &a.)
That implies to me that "`Add::add(a, b)` (provided std::ops::Add is imported)" would be the most didactic explanation.