Trait jpeg_decoder::worker::Worker
source · pub trait Worker {
// Required methods
fn start(&mut self, row_data: RowData) -> Result<(), Error>;
fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<(), Error>;
fn get_result(&mut self, index: usize) -> Result<Vec<u8>, Error>;
// Provided method
fn append_rows(
&mut self,
row: &mut dyn Iterator<Item = (usize, Vec<i16>)>,
) -> Result<(), Error> { ... }
}