The remainder assignment operator %=.

Signature

pub trait RemAssign

Trait functions

rem_assign

Performs the %= operation.

Signature

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

Examples

let mut x: u8 = 3;
x %= x;
assert!(x == 0);