(&mut self, c: u8)
| 529 | struct NonDigit; |
| 530 | impl IntParser { |
| 531 | fn feed(&mut self, c: u8) -> Result<(), NonDigit> { |
| 532 | let digit = (c as char).to_digit(10).ok_or(NonDigit)?; |
| 533 | self.num *= 10; |
| 534 | self.num += digit as i32; |
| 535 | Ok(()) |
| 536 | } |
| 537 | } |
no outgoing calls
no test coverage detected