News for hackers. Stuff that matters.
Re:Rust Traits Deep Dive, Part 2 by cesarb on Wednesday June 20, 2018 @10:30AM (#17355722)
> (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.

There are no comments on this comment yet.