[][src]Struct spng::Reader

pub struct Reader<R> { /* fields omitted */ }

PNG reader

Implementations

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

impl<R: Debug> Debug for Reader<R>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.