The addition assignment operator +=.

Signature

pub trait AddAssign

Trait functions

add_assign

Performs the += operation.

Signature

fn add_assign(ref self: Lhs, rhs: Rhs)

Examples

let mut x: u8 = 3;
x += x;
assert!(x == 6);