[][src]Struct pngme::png::Png

pub struct Png { /* fields omitted */ }

Implementations

impl Png[src]

pub fn from_chunks(chunks: Vec<Chunk>) -> Png[src]

pub fn chunks(&self) -> &[Chunk][src]

pub fn append_chunk(&mut self, chunk: Chunk)[src]

pub fn chunk_by_type(&self, chunk_type: &str) -> Option<&Chunk>[src]

pub fn remove_chunk(&mut self, chunk_type: &str) -> Result<Chunk>[src]

pub fn as_bytes(&self) -> Vec<u8>[src]

Trait Implementations

impl Debug for Png[src]

impl<'_> TryFrom<&'_ [u8]> for Png[src]

type Error = Error<'static>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Png

impl Send for Png

impl Sync for Png

impl Unpin for Png

impl UnwindSafe for Png

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.