Enum COLOR_SPACE

Source
#[repr(C)]
pub enum COLOR_SPACE {
Show 40 variants COLOR_SPACE_sRGB = 0, COLOR_SPACE_sRGBL = 1, COLOR_SPACE_AdobeRGB = 2, COLOR_SPACE_AdobeRGBL = 3, COLOR_SPACE_WideGamutRGB = 4, COLOR_SPACE_WideGamutRGBL = 5, COLOR_SPACE_ProPhotoRGB = 6, COLOR_SPACE_ProPhotoRGBL = 7, COLOR_SPACE_DCI_P3_RGB = 8, COLOR_SPACE_DCI_P3_RGBL = 9, COLOR_SPACE_AppleRGB = 10, COLOR_SPACE_AppleRGBL = 11, COLOR_SPACE_REC_709_RGB = 12, COLOR_SPACE_REC_709_RGBL = 13, COLOR_SPACE_REC_2020_RGB = 14, COLOR_SPACE_REC_2020_RGBL = 15, COLOR_SPACE_XYZ_D65_2 = 16, COLOR_SPACE_XYZ_D65_10 = 17, COLOR_SPACE_XYZ_D50_2 = 18, COLOR_SPACE_XYZ_D50_10 = 19, COLOR_SPACE_XYZ_A_2 = 20, COLOR_SPACE_XYZ_A_10 = 21, COLOR_SPACE_XYZ_D55_2 = 22, COLOR_SPACE_XYZ_D55_10 = 23, COLOR_SPACE_XYZ_D75_2 = 24, COLOR_SPACE_XYZ_D75_10 = 25, COLOR_SPACE_XYZ_E_2 = 26, COLOR_SPACE_XYZ_E_10 = 27, COLOR_SPACE_Lab_D65_2 = 28, COLOR_SPACE_Lab_D65_10 = 29, COLOR_SPACE_Lab_D50_2 = 30, COLOR_SPACE_Lab_D50_10 = 31, COLOR_SPACE_Lab_A_2 = 32, COLOR_SPACE_Lab_A_10 = 33, COLOR_SPACE_Lab_D55_2 = 34, COLOR_SPACE_Lab_D55_10 = 35, COLOR_SPACE_Lab_D75_2 = 36, COLOR_SPACE_Lab_D75_10 = 37, COLOR_SPACE_Lab_E_2 = 38, COLOR_SPACE_Lab_E_10 = 39,
}

Variants§

§

COLOR_SPACE_sRGB = 0

§

COLOR_SPACE_sRGBL = 1

https://en.wikipedia.org/wiki/SRGB , linear RGB color space

§

COLOR_SPACE_AdobeRGB = 2

§

COLOR_SPACE_AdobeRGBL = 3

§

COLOR_SPACE_WideGamutRGB = 4

§

COLOR_SPACE_WideGamutRGBL = 5

§

COLOR_SPACE_ProPhotoRGB = 6

§

COLOR_SPACE_ProPhotoRGBL = 7

§

COLOR_SPACE_DCI_P3_RGB = 8

§

COLOR_SPACE_DCI_P3_RGBL = 9

https://en.wikipedia.org/wiki/DCI-P3 , linear RGB color space

§

COLOR_SPACE_AppleRGB = 10

§

COLOR_SPACE_AppleRGBL = 11

§

COLOR_SPACE_REC_709_RGB = 12

§

COLOR_SPACE_REC_709_RGBL = 13

https://en.wikipedia.org/wiki/Rec._709 , linear RGB color space

§

COLOR_SPACE_REC_2020_RGB = 14

§

COLOR_SPACE_REC_2020_RGBL = 15

https://en.wikipedia.org/wiki/Rec._2020 , linear RGB color space

§

COLOR_SPACE_XYZ_D65_2 = 16

§

COLOR_SPACE_XYZ_D65_10 = 17

non-RGB color space

§

COLOR_SPACE_XYZ_D50_2 = 18

non-RGB color space

§

COLOR_SPACE_XYZ_D50_10 = 19

non-RGB color space

§

COLOR_SPACE_XYZ_A_2 = 20

non-RGB color space

§

COLOR_SPACE_XYZ_A_10 = 21

non-RGB color space

§

COLOR_SPACE_XYZ_D55_2 = 22

non-RGB color space

§

COLOR_SPACE_XYZ_D55_10 = 23

non-RGB color space

§

COLOR_SPACE_XYZ_D75_2 = 24

non-RGB color space

§

COLOR_SPACE_XYZ_D75_10 = 25

non-RGB color space

§

COLOR_SPACE_XYZ_E_2 = 26

non-RGB color space

§

COLOR_SPACE_XYZ_E_10 = 27

non-RGB color space

§

COLOR_SPACE_Lab_D65_2 = 28

§

COLOR_SPACE_Lab_D65_10 = 29

non-RGB color space

§

COLOR_SPACE_Lab_D50_2 = 30

non-RGB color space

§

COLOR_SPACE_Lab_D50_10 = 31

non-RGB color space

§

COLOR_SPACE_Lab_A_2 = 32

non-RGB color space

§

COLOR_SPACE_Lab_A_10 = 33

non-RGB color space

§

COLOR_SPACE_Lab_D55_2 = 34

non-RGB color space

§

COLOR_SPACE_Lab_D55_10 = 35

non-RGB color space

§

COLOR_SPACE_Lab_D75_2 = 36

non-RGB color space

§

COLOR_SPACE_Lab_D75_10 = 37

non-RGB color space

§

COLOR_SPACE_Lab_E_2 = 38

non-RGB color space

§

COLOR_SPACE_Lab_E_10 = 39

non-RGB color space

Trait Implementations§

Source§

impl Clone for COLOR_SPACE

Source§

fn clone(&self) -> COLOR_SPACE

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for COLOR_SPACE

Source§

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

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

impl From<COLOR_SPACE> for i32

Source§

fn from(v: COLOR_SPACE) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for COLOR_SPACE

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for COLOR_SPACE

Source§

type Error = Error

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for COLOR_SPACE

Source§

impl Eq for COLOR_SPACE

Source§

impl StructuralPartialEq for COLOR_SPACE

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.