(
&self,
ctx: &mut Ctx,
range: Range<StrSize>,
reason: Option<&str>,
)
| 267 | |
| 268 | impl<Ctx: EncodeContext> EncodeErrorHandler<Ctx> for Strict { |
| 269 | fn handle_encode_error( |
| 270 | &self, |
| 271 | ctx: &mut Ctx, |
| 272 | range: Range<StrSize>, |
| 273 | reason: Option<&str>, |
| 274 | ) -> Result<(EncodeReplace<Ctx>, StrSize), Ctx::Error> { |
| 275 | Err(ctx.error_encoding(range, reason)) |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | impl<Ctx: DecodeContext> DecodeErrorHandler<Ctx> for Strict { |
no test coverage detected