Struct png::decoder::ReadDecoder
source · struct ReadDecoder<R: Read> {
reader: BufReader<R>,
decoder: StreamingDecoder,
at_eof: bool,
}
Fields§
§reader: BufReader<R>
§decoder: StreamingDecoder
§at_eof: bool
Implementations§
source§impl<R: Read> ReadDecoder<R>
impl<R: Read> ReadDecoder<R>
sourcefn decode_next(
&mut self,
image_data: &mut Vec<u8>,
) -> Result<Option<Decoded>, DecodingError>
fn decode_next( &mut self, image_data: &mut Vec<u8>, ) -> Result<Option<Decoded>, DecodingError>
Returns the next decoded chunk. If the chunk is an ImageData chunk, its contents are written into image_data.
fn finish_decoding(&mut self) -> Result<(), DecodingError>
fn info(&self) -> Option<&Info<'static>>
Auto Trait Implementations§
impl<R> Freeze for ReadDecoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for ReadDecoder<R>where
R: RefUnwindSafe,
impl<R> Send for ReadDecoder<R>where
R: Send,
impl<R> Sync for ReadDecoder<R>where
R: Sync,
impl<R> Unpin for ReadDecoder<R>where
R: Unpin,
impl<R> UnwindSafe for ReadDecoder<R>where
R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more