(&mut self, other: &Self)
| 176 | |
| 177 | impl Tokens { |
| 178 | fn add(&mut self, other: &Self) -> Result<(), RepositoryError> { |
| 179 | self.input = add(self.input, other.input)?; |
| 180 | self.output = add(self.output, other.output)?; |
| 181 | self.reasoning = add(self.reasoning, other.reasoning)?; |
| 182 | self.cache_read = add(self.cache_read, other.cache_read)?; |
| 183 | self.cache_write = add(self.cache_write, other.cache_write)?; |
| 184 | self.total = add(self.total, other.total)?; |
| 185 | Ok(()) |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | fn invalid(message: &str) -> RepositoryError { |