Struct png::OutputInfo
source · [−]pub struct OutputInfo {
pub width: u32,
pub height: u32,
pub color_type: ColorType,
pub bit_depth: BitDepth,
pub line_size: usize,
}
Expand description
Output info
Fields
width: u32
height: u32
color_type: ColorType
bit_depth: BitDepth
line_size: usize
Implementations
sourceimpl OutputInfo
impl OutputInfo
sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
Returns the size needed to hold a decoded frame
Trait Implementations
sourceimpl Debug for OutputInfo
impl Debug for OutputInfo
sourceimpl PartialEq<OutputInfo> for OutputInfo
impl PartialEq<OutputInfo> for OutputInfo
sourcefn eq(&self, other: &OutputInfo) -> bool
fn eq(&self, other: &OutputInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OutputInfo) -> bool
fn ne(&self, other: &OutputInfo) -> bool
This method tests for !=
.
impl Eq for OutputInfo
impl StructuralEq for OutputInfo
impl StructuralPartialEq for OutputInfo
Auto Trait Implementations
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnwindSafe for OutputInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more