Enum png::Unit
[−]
[src]
#[repr(u8)]pub enum Unit { Unspecified, Meter, }
Physical unit of the pixel dimensions
Variants
UnspecifiedMeter
Methods
impl Unit[src]
pub fn from_u8(n: u8) -> Option<Unit>[src]
u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
impl Debug for Unit[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Unit[src]
fn clone(&self) -> Unit[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Unit[src]
impl PartialEq for Unit[src]
fn eq(&self, __arg_0: &Unit) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.