Enum png::BitDepth [−][src]
#[repr(u8)]pub enum BitDepth { One, Two, Four, Eight, Sixteen, }
Bit depth of the png file
Variants
One
Two
Four
Eight
Sixteen
Methods
impl BitDepth
[src]
impl BitDepth
pub 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 BitDepth
impl Debug for BitDepth
[src]
impl Debug for BitDepth
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BitDepth
[src]
impl Clone for BitDepth
fn clone(&self) -> BitDepth
[src]
fn clone(&self) -> BitDepth
Returns 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 BitDepth
impl PartialEq for BitDepth
[src]
impl PartialEq for BitDepth
fn eq(&self, other: &BitDepth) -> bool
[src]
fn eq(&self, other: &BitDepth) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for BitDepth
[src]
impl Eq for BitDepth