3 ms·
Construct references to the fields of self inc needs at the call site and pass those instead of all of self, eg. inc(&mut self.x).
by edflsafoiewq 4y ago
Construct references to the fields of self inc needs at the call site and pass those instead of all of self, eg. inc(&mut self.x).