Enum png::BitDepth [−][src]
#[repr(u8)]pub enum BitDepth { One, Two, Four, Eight, Sixteen, }
Bit depth of the png file
Variants
OneTwoFourEightSixteenMethods
impl BitDepth[src]
impl BitDepthpub fn from_u8(n: u8) -> Option<BitDepth>[src]
pub fn from_u8(n: u8) -> Option<BitDepth>u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
impl<W: Write> Parameter<Encoder<W>> for BitDepth[src]
impl<W: Write> Parameter<Encoder<W>> for BitDepthimpl Debug for BitDepth[src]
impl Debug for BitDepthfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for BitDepth[src]
impl Clone for BitDepthfn clone(&self) -> BitDepth[src]
fn clone(&self) -> BitDepthReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for BitDepth[src]
impl Copy for BitDepthimpl PartialEq for BitDepth[src]
impl PartialEq for BitDepthfn eq(&self, other: &BitDepth) -> bool[src]
fn eq(&self, other: &BitDepth) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for BitDepth[src]
impl Eq for BitDepth