Trait spng::raw::ChunkAvail [−][src]
pub trait ChunkAvail<T> { fn chunk_avail(self) -> Result<Option<T>, Error>; }
Expand description
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>
fn chunk_avail(self) -> Result<Option<T>, Error>
Converts Err(Error::Chunkavail)
into Ok(None)
.