[][src]Struct img2raw::Header

#[repr(C)]
pub struct Header {
    pub color_space: ColorSpaceInfo,
    pub data_format: DataFormatInfo,
    pub dimensions: [u32; 2],
}

Header optionally prepended to the pixel data.

Fields

color_space: ColorSpaceInfo

The color space of the subsequent pixel data.

data_format: DataFormatInfo

The data format of the subsequent pixel data.

dimensions: [u32; 2]

The image width and height in pixels.

Trait Implementations

impl AsBytes for Header[src]

impl Clone for Header[src]

impl Copy for Header[src]

impl Debug for Header[src]

impl FromBytes for Header[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

impl Unpin for Header

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.