pub trait DecodeErrorHandler<Ctx: DecodeContext> {
// Required method
fn handle_decode_error(
&self,
ctx: &mut Ctx,
byte_range: Range<usize>,
reason: Option<&str>,
) -> Result<(Ctx::StrBuf, usize), Ctx::Error>;
}Required Methods§
fn handle_decode_error( &self, ctx: &mut Ctx, byte_range: Range<usize>, reason: Option<&str>, ) -> Result<(Ctx::StrBuf, usize), Ctx::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".