[][src]Struct lodepng::ChunkRef

pub struct ChunkRef<'a> { /* fields omitted */ }

Reference to a chunk

Implementations

impl<'a> ChunkRef<'a>[src]

pub fn len(&self) -> usize[src]

pub fn name(&self) -> [u8; 4][src]

Chunk type, e.g. tRNS

pub fn is_type<C: AsRef<[u8]>>(&self, name: C) -> bool[src]

True if name() equals this arg

pub fn is_ancillary(&self) -> bool[src]

pub fn is_private(&self) -> bool[src]

pub fn is_safe_to_copy(&self) -> bool[src]

pub fn data(&self) -> &[u8][src]

pub fn check_crc(&self) -> bool[src]

pub fn crc(&self) -> u32[src]

Trait Implementations

impl<'a> Clone for ChunkRef<'a>[src]

impl<'a> Copy for ChunkRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ChunkRef<'a>

impl<'a> Send for ChunkRef<'a>

impl<'a> Sync for ChunkRef<'a>

impl<'a> Unpin for ChunkRef<'a>

impl<'a> UnwindSafe for ChunkRef<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.