Enum ResolutionUnit
#[non_exhaustive]
#[repr(u16)]
pub enum ResolutionUnit
Type to represent resolution units
Variants
-
None = 1 -
Inch = 2 -
Centimeter = 3
Implementations
impl ResolutionUnit
const fn from_u16(val: u16) -> Option<Self>const fn to_u16(&self) -> u16
Trait Implementations
impl Clone for ResolutionUnit
fn clone(&self) -> Self
impl Copy for ResolutionUnit
impl Debug for ResolutionUnit
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ResolutionUnit
impl Hash for ResolutionUnit
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ResolutionUnit
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for ResolutionUnit
impl TiffValue for ResolutionUnit
const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN;const FIELD_TYPE: Type = Type::SHORT;fn count(&self) -> usizefn data(&self) -> Cow<'_, [u8]>