Enum PhotometricInterpretation

#[non_exhaustive]
#[repr(u16)]
pub enum PhotometricInterpretation

Variants

WhiteIsZero = 0
BlackIsZero = 1
RGB = 2
RGBPalette = 3
TransparencyMask = 4
CMYK = 5
YCbCr = 6
CIELab = 8
IccLab = 9
ItuLab = 10

Implementations

impl PhotometricInterpretation

const fn from_u16(val: u16) -> Option<Self>
const fn to_u16(&self) -> u16

Trait Implementations

impl Clone for PhotometricInterpretation

fn clone(&self) -> Self

impl Copy for PhotometricInterpretation

impl Debug for PhotometricInterpretation

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for PhotometricInterpretation

impl Hash for PhotometricInterpretation

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for PhotometricInterpretation

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for PhotometricInterpretation

impl TiffValue for PhotometricInterpretation

const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN;
const FIELD_TYPE: Type = Type::SHORT;
fn count(&self) -> usize
fn data(&self) -> Cow<'_, [u8]>

Auto Trait Implementations

impl Freeze for PhotometricInterpretation

impl RefUnwindSafe for PhotometricInterpretation

impl Send for PhotometricInterpretation

impl Sync for PhotometricInterpretation

impl Unpin for PhotometricInterpretation

impl UnsafeUnpin for PhotometricInterpretation

impl UnwindSafe for PhotometricInterpretation

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for PhotometricInterpretation where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for PhotometricInterpretation where ST: ?Sized, DT: ?Sized,

impl<T> Any for PhotometricInterpretation where T: 'static + ?Sized,

impl<T> Borrow<T> for PhotometricInterpretation where T: ?Sized,

impl<T> BorrowMut<T> for PhotometricInterpretation where T: ?Sized,

impl<T> CloneToUninit for PhotometricInterpretation where T: Clone,

impl<T> From<T> for PhotometricInterpretation

impl<T> Read<Exclusive, BecauseExclusive> for PhotometricInterpretation where T: ?Sized,

impl<T> ToOwned for PhotometricInterpretation where T: Clone,

impl<T, U> Into<U> for PhotometricInterpretation where U: From<T>,

impl<T, U> TryFrom<U> for PhotometricInterpretation where U: Into<T>,

impl<T, U> TryInto<U> for PhotometricInterpretation where U: TryFrom<T>,