pub struct Reader<R> { /* private fields */ }
Expand description
PNG reader
Implementations§
Source§impl<R> Reader<R>
impl<R> Reader<R>
Sourcepub fn output_buffer_size(&self) -> usize
pub fn output_buffer_size(&self) -> usize
Returns the minimum buffer size required for next_frame
Sourcepub fn next_frame(&mut self, output: &mut [u8]) -> Result<(), Error>
pub fn next_frame(&mut self, output: &mut [u8]) -> Result<(), Error>
Decodes the next frame of the png
. This currently may only be called once.
Sourcepub fn raw_context(&self) -> &RawContext<R>
pub fn raw_context(&self) -> &RawContext<R>
Returns a reference to the RawContext
.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Reader<R>
impl<R> RefUnwindSafe for Reader<R>where
R: RefUnwindSafe,
impl<R> !Send for Reader<R>
impl<R> !Sync for Reader<R>
impl<R> Unpin for Reader<R>
impl<R> UnwindSafe for Reader<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