[−][src]Struct spng::Reader
PNG reader
Methods
impl<R> Reader<R>
[src]
pub fn info(&self) -> &Info
[src]
Returns input information
pub fn output_buffer_size(&self) -> usize
[src]
Returns the minimum buffer size required for next_frame
pub fn next_frame(&mut self, output: &mut [u8]) -> Result<(), Error>
[src]
Decodes the next frame of the png
. This currently may only be called once.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
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,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,