(&self)
| 82 | } |
| 83 | |
| 84 | fn offset(&self) -> crate::std::io::Result<usize> { |
| 85 | usize::try_from(self.position).map_err(|_| { |
| 86 | crate::std::io::Error::new(crate::std::io::ErrorKind::InvalidInput, "cursor position exceeds usize") |
| 87 | }) |
| 88 | } |
| 89 | |
| 90 | fn advance(&mut self, amount: usize) -> crate::std::io::Result<()> { |
| 91 | self.position = self.position.checked_add(amount as u64).ok_or_else(|| { |
no outgoing calls
no test coverage detected