Lines Matching refs:rhs
150 fn add(self, rhs: i32) -> Self::Output { in add()
151 LineId::new(self.0 + rhs) in add()
157 fn sub(self, rhs: i32) -> Self::Output { in sub()
158 LineId::new(self.0 - rhs) in sub()
179 fn sub(mut self, rhs: LineId) -> Self::Output { in sub()
180 self.0 -= rhs.0; in sub()
185 fn add_assign(&mut self, rhs: LineId) { in add_assign()
186 self.0 += rhs.0; in add_assign()
202 fn add(self, rhs: LineIndex) -> Self::Output { in add()
203 LineIndex::new(self.0 + rhs.0) in add()
210 fn add(self, rhs: i32) -> Self::Output { in add()
211 LineIndex::new(self.0 + rhs) in add()
217 fn sub(self, rhs: i32) -> Self::Output { in sub()
218 LineIndex::new(self.0 - rhs) in sub()