(
&mut self,
errors: &E,
range: Range<StrSize>,
reason: Option<&str>,
)
| 37 | fn error_encoding(&self, range: Range<StrSize>, reason: Option<&str>) -> Self::Error; |
| 38 | |
| 39 | fn handle_error<E>( |
| 40 | &mut self, |
| 41 | errors: &E, |
| 42 | range: Range<StrSize>, |
| 43 | reason: Option<&str>, |
| 44 | ) -> Result<EncodeReplace<Self>, Self::Error> |
| 45 | where |
| 46 | E: EncodeErrorHandler<Self>, |
| 47 | { |
| 48 | let (replace, restart) = errors.handle_encode_error(self, range, reason)?; |
| 49 | self.restart_from(restart)?; |
| 50 | Ok(replace) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | pub trait DecodeContext: CodecContext { |
no test coverage detected