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) -> PhotometricInterpretation

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: &PhotometricInterpretation) -> 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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for PhotometricInterpretation

fn from(t: T) -> T

Returns the argument unchanged.

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

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>