pub trait Decoder<D>where
D: Context,{
// Required method
fn partial_decode(&self, context: &D) -> Result<Vec<Bit>, ContextError>;
// Provided method
fn decode(
&self,
context: &mut D,
progress_channel: Option<&Sender<ProgressStatus>>,
) -> Result<Vec<u8>, Box<dyn Error>> { ... }
}
Expand description
Base trait for all data decoders. The generic type should contain data need by the decoder implementation.