Enum cgats::Field

source ·
pub enum Field {
Show 110 variants SAMPLE_ID, SAMPLE_NAME, BLANK, RGB_R, RGB_G, RGB_B, CMYK_C, CMYK_M, CMYK_Y, CMYK_K, FIVECLR_1, FIVECLR_2, FIVECLR_3, FIVECLR_4, FIVECLR_5, SIXCLR_1, SIXCLR_2, SIXCLR_3, SIXCLR_4, SIXCLR_5, SIXCLR_6, SEVENCLR_1, SEVENCLR_2, SEVENCLR_3, SEVENCLR_4, SEVENCLR_5, SEVENCLR_6, SEVENCLR_7, EIGHTCLR_1, EIGHTCLR_2, EIGHTCLR_3, EIGHTCLR_4, EIGHTCLR_5, EIGHTCLR_6, EIGHTCLR_7, EIGHTCLR_8, NCLR(u8), D_RED, D_GREEN, D_BLUE, D_VIS, LAB_L, LAB_A, LAB_B, LCH_L, LCH_C, LCH_H, DE_1976, DE_1994, DE_1994T, DE_CMC, DE_CMC2, DE_2000, XYZ_X, XYZ_Y, XYZ_Z, XYY_X, XYY_Y, XYY_CAPY, SPECTRAL_340, SPECTRAL_350, SPECTRAL_360, SPECTRAL_370, SPECTRAL_380, SPECTRAL_390, SPECTRAL_400, SPECTRAL_410, SPECTRAL_420, SPECTRAL_430, SPECTRAL_440, SPECTRAL_450, SPECTRAL_460, SPECTRAL_470, SPECTRAL_480, SPECTRAL_490, SPECTRAL_500, SPECTRAL_510, SPECTRAL_520, SPECTRAL_530, SPECTRAL_540, SPECTRAL_550, SPECTRAL_560, SPECTRAL_570, SPECTRAL_580, SPECTRAL_590, SPECTRAL_600, SPECTRAL_610, SPECTRAL_620, SPECTRAL_630, SPECTRAL_640, SPECTRAL_650, SPECTRAL_660, SPECTRAL_670, SPECTRAL_680, SPECTRAL_690, SPECTRAL_700, SPECTRAL_710, SPECTRAL_720, SPECTRAL_730, SPECTRAL_740, SPECTRAL_750, SPECTRAL_760, SPECTRAL_770, SPECTRAL_780, SPECTRAL_790, SPECTRAL_800, SPECTRAL_810, SPECTRAL_820, SPECTRAL_830, Other(String),
}
Expand description

The types contained within the DATA_FORMAT section of a CGATS file

Variants§

§

SAMPLE_ID

§

SAMPLE_NAME

§

BLANK

§

RGB_R

§

RGB_G

§

RGB_B

§

CMYK_C

§

CMYK_M

§

CMYK_Y

§

CMYK_K

§

FIVECLR_1

§

FIVECLR_2

§

FIVECLR_3

§

FIVECLR_4

§

FIVECLR_5

§

SIXCLR_1

§

SIXCLR_2

§

SIXCLR_3

§

SIXCLR_4

§

SIXCLR_5

§

SIXCLR_6

§

SEVENCLR_1

§

SEVENCLR_2

§

SEVENCLR_3

§

SEVENCLR_4

§

SEVENCLR_5

§

SEVENCLR_6

§

SEVENCLR_7

§

EIGHTCLR_1

§

EIGHTCLR_2

§

EIGHTCLR_3

§

EIGHTCLR_4

§

EIGHTCLR_5

§

EIGHTCLR_6

§

EIGHTCLR_7

§

EIGHTCLR_8

§

NCLR(u8)

§

D_RED

§

D_GREEN

§

D_BLUE

§

D_VIS

§

LAB_L

§

LAB_A

§

LAB_B

§

LCH_L

§

LCH_C

§

LCH_H

§

DE_1976

§

DE_1994

§

DE_1994T

§

DE_CMC

§

DE_CMC2

§

DE_2000

§

XYZ_X

§

XYZ_Y

§

XYZ_Z

§

XYY_X

§

XYY_Y

§

XYY_CAPY

§

SPECTRAL_340

§

SPECTRAL_350

§

SPECTRAL_360

§

SPECTRAL_370

§

SPECTRAL_380

§

SPECTRAL_390

§

SPECTRAL_400

§

SPECTRAL_410

§

SPECTRAL_420

§

SPECTRAL_430

§

SPECTRAL_440

§

SPECTRAL_450

§

SPECTRAL_460

§

SPECTRAL_470

§

SPECTRAL_480

§

SPECTRAL_490

§

SPECTRAL_500

§

SPECTRAL_510

§

SPECTRAL_520

§

SPECTRAL_530

§

SPECTRAL_540

§

SPECTRAL_550

§

SPECTRAL_560

§

SPECTRAL_570

§

SPECTRAL_580

§

SPECTRAL_590

§

SPECTRAL_600

§

SPECTRAL_610

§

SPECTRAL_620

§

SPECTRAL_630

§

SPECTRAL_640

§

SPECTRAL_650

§

SPECTRAL_660

§

SPECTRAL_670

§

SPECTRAL_680

§

SPECTRAL_690

§

SPECTRAL_700

§

SPECTRAL_710

§

SPECTRAL_720

§

SPECTRAL_730

§

SPECTRAL_740

§

SPECTRAL_750

§

SPECTRAL_760

§

SPECTRAL_770

§

SPECTRAL_780

§

SPECTRAL_790

§

SPECTRAL_800

§

SPECTRAL_810

§

SPECTRAL_820

§

SPECTRAL_830

§

Other(String)

Implementations§

source§

impl Field

source

pub fn from_channel_index(n_channels: usize, index: usize) -> Result<Self>

Returns a guess at a Field based on the total number of channels and the index of the channel. Returns an error if there are less than 3 channels or if the index is greater than or equal to the number of channels.

Trait Implementations§

source§

impl AsRef<Field> for Field

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl CgatsFmt for Field

source§

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

Format data to a fmt::Formatter
source§

impl Clone for Field

source§

fn clone(&self) -> Field

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Field

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for Field

source§

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

Formats the value using the given formatter. Read more
source§

impl From<DEMethod> for Field

source§

fn from(method: DEMethod) -> Self

Converts to this type from the input type.
source§

impl FromIterator<Field> for DataFormat

source§

fn from_iter<I: IntoIterator<Item = Field>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromStr for Field

§

type Err = Box<dyn Error>

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Field

source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Field

source§

fn cmp(&self, other: &Field) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Field

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Field

source§

fn partial_cmp(&self, other: &Field) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<Field> for DEMethod

§

type Error = Box<dyn Error>

The type returned in the event of a conversion error.
source§

fn try_from(field: Field) -> Result<Self>

Performs the conversion.
source§

impl Eq for Field

source§

impl StructuralPartialEq for Field

Auto Trait Implementations§

§

impl Freeze for Field

§

impl RefUnwindSafe for Field

§

impl Send for Field

§

impl Sync for Field

§

impl Unpin for Field

§

impl UnwindSafe for Field

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.