pub trait EncodeErrorHandler<Ctx: EncodeContext> {
// Required method
fn handle_encode_error(
&self,
ctx: &mut Ctx,
range: Range<StrSize>,
reason: Option<&str>,
) -> Result<(EncodeReplace<Ctx>, StrSize), Ctx::Error>;
}Required Methods§
fn handle_encode_error( &self, ctx: &mut Ctx, range: Range<StrSize>, reason: Option<&str>, ) -> Result<(EncodeReplace<Ctx>, StrSize), Ctx::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".