Lines Matching refs:rhs
210 fn add(self, rhs: Self) -> Self::Output { in add()
211 return Self(self.0 + rhs.0); in add()
216 fn add_assign(&mut self, rhs: Self) { in add_assign()
217 self.0 += rhs.0; in add_assign()
224 fn sub(self, rhs: Self) -> Self::Output { in sub()
225 return Self(self.0 - rhs.0); in sub()
230 fn sub_assign(&mut self, rhs: Self) { in sub_assign()
231 self.0 -= rhs.0; in sub_assign()
238 fn mul(self, rhs: Self) -> Self::Output { in mul()
239 return Self(self.0 * rhs.0); in mul()
246 fn add(self, rhs: usize) -> Self::Output { in add()
247 return Self(self.0 + rhs); in add()
252 fn add_assign(&mut self, rhs: usize) { in add_assign()
253 self.0 += rhs; in add_assign()
260 fn sub(self, rhs: usize) -> Self::Output { in sub()
261 return Self(self.0 - rhs); in sub()
266 fn sub_assign(&mut self, rhs: usize) { in sub_assign()
267 self.0 -= rhs; in sub_assign()
274 fn mul(self, rhs: usize) -> Self::Output { in mul()
275 return Self(self.0 * rhs); in mul()