Enum png::Unit [−][src]
#[repr(u8)]pub enum Unit { Unspecified, Meter, }
Physical unit of the pixel dimensions
Variants
Unspecified
Meter
Methods
impl Unit
[src]
impl Unit
pub 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 Unit
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 Unit
[src]
impl Clone for Unit
fn clone(&self) -> Unit
[src]
fn clone(&self) -> Unit
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 Unit
[src]
impl Copy for Unit
impl PartialEq for Unit
[src]
impl PartialEq for Unit
fn eq(&self, other: &Unit) -> bool
[src]
fn eq(&self, other: &Unit) -> 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 Unit
[src]
impl Eq for Unit