(
&self,
ctx: &mut Ctx,
byte_range: Range<usize>,
reason: Option<&str>,
)
| 278 | |
| 279 | impl<Ctx: DecodeContext> DecodeErrorHandler<Ctx> for Strict { |
| 280 | fn handle_decode_error( |
| 281 | &self, |
| 282 | ctx: &mut Ctx, |
| 283 | byte_range: Range<usize>, |
| 284 | reason: Option<&str>, |
| 285 | ) -> Result<(Ctx::StrBuf, usize), Ctx::Error> { |
| 286 | Err(ctx.error_decoding(byte_range, reason)) |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | #[derive(Clone, Copy)] |
no test coverage detected