title: How can I overload the += "plus equals" operator?
body: <p>How can I use compound operators like "+=" with custom types?</p>
  
  <p>Overloading some basic operators is possible by implementing <a href="http://doc.rust-lang.org/1.0.0-alpha/std/ops/" rel="noreferrer"><code>Add</code>, <code>Sub</code>, etc</a>. But there does not appear to be any support for <code>+=</code>, neither is <code>x += y</code> automatically interpreted as <code>x = x + y</code> (as of the 1.0 alpha release).</p>