[][src]Struct png::OutputInfo

pub struct OutputInfo {
    pub width: u32,
    pub height: u32,
    pub color_type: ColorType,
    pub bit_depth: BitDepth,
    pub line_size: usize,
}

Output info

Fields

width: u32height: u32color_type: ColorTypebit_depth: BitDepthline_size: usize

Methods

impl OutputInfo[src]

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

Returns the size needed to hold a decoded frame

Auto Trait Implementations

impl Unpin for OutputInfo

impl Sync for OutputInfo

impl Send for OutputInfo

impl UnwindSafe for OutputInfo

impl RefUnwindSafe for OutputInfo

Blanket Implementations

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]