Skip to main content

EncodeErrorHandler

Trait EncodeErrorHandler 

Source
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§

Source

fn handle_encode_error( &self, ctx: &mut Ctx, range: Range<StrSize>, reason: Option<&str>, ) -> Result<(EncodeReplace<Ctx>, StrSize), Ctx::Error>

Implementors§