pub trait Decoder {
// Required methods
fn name(&self) -> &'static str;
fn decode(
&mut self,
src: &[u8],
dst: &mut String,
finish: bool,
) -> Result<(usize, usize), DecodeError>;
}pub trait Decoder {
// Required methods
fn name(&self) -> &'static str;
fn decode(
&mut self,
src: &[u8],
dst: &mut String,
finish: bool,
) -> Result<(usize, usize), DecodeError>;
}