Enum png::Unit [−][src]
#[repr(u8)]pub enum Unit { Unspecified, Meter, }
Physical unit of the pixel dimensions
Variants
UnspecifiedMeterMethods
impl Unit[src]
impl Unitpub fn from_u8(n: u8) -> Option<Unit>[src]
pub fn from_u8(n: u8) -> Option<Unit>u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
impl Debug for Unit[src]
impl Debug for Unitfn 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 Unit[src]
impl Clone for Unitfn clone(&self) -> Unit[src]
fn clone(&self) -> UnitReturns 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 Unit[src]
impl Copy for Unitimpl PartialEq for Unit[src]
impl PartialEq for Unitfn eq(&self, other: &Unit) -> bool[src]
fn eq(&self, other: &Unit) -> 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 Unit[src]
impl Eq for Unit