Trait spng::raw::ChunkAvail[][src]

pub trait ChunkAvail<T> {
    fn chunk_avail(self) -> Result<Option<T>, Error>;
}

Helper trait for converting optional ancillary chunks into Option<T>.

http://www.libpng.org/pub/png/spec/1.1/PNG-Chunks.html#C.Ancillary-chunks

Ancilary chunks

  • BKGD
  • CHRM
  • GAMA
  • HIST
  • ICCP
  • PHYS
  • SBIT
  • SPLT
  • SRGB
  • TEXT
  • TIME
  • TRNS
  • ZTXT

Required methods

fn chunk_avail(self) -> Result<Option<T>, Error>[src]

Converts Err(Error::Chunkavail) into Ok(None).

Loading content...

Implementations on Foreign Types

impl<T> ChunkAvail<T> for Result<T, Error>[src]

Loading content...

Implementors

Loading content...