Enum kolor::details::color::RGBPrimaries
source · #[repr(u8)]
pub enum RGBPrimaries {
NONE,
BT_709,
BT_2020,
AP0,
AP1,
P3,
ADOBE_1998,
ADOBE_WIDE,
APPLE,
PRO_PHOTO,
CIE_RGB,
CIE_XYZ,
}
Expand description
RGBPrimaries is a set of primary colors picked to define an RGB color space.
Variants§
NONE
BT_709
BT.709 is the sRGB primaries.
BT_2020
AP0
AP1
P3
P3 is the primaries for DCI-P3 and the variations with different white points
ADOBE_1998
ADOBE_WIDE
APPLE
PRO_PHOTO
CIE_RGB
CIE_XYZ
The reference XYZ color space
Implementations§
source§impl RGBPrimaries
impl RGBPrimaries
pub const ENUM_COUNT: RGBPrimaries = RGBPrimaries::CIE_XYZ
pub const fn values(&self) -> &[[FType; 2]; 3]
Trait Implementations§
source§impl Clone for RGBPrimaries
impl Clone for RGBPrimaries
source§fn clone(&self) -> RGBPrimaries
fn clone(&self) -> RGBPrimaries
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RGBPrimaries
impl Debug for RGBPrimaries
source§impl Hash for RGBPrimaries
impl Hash for RGBPrimaries
source§impl PartialEq<RGBPrimaries> for RGBPrimaries
impl PartialEq<RGBPrimaries> for RGBPrimaries
source§fn eq(&self, other: &RGBPrimaries) -> bool
fn eq(&self, other: &RGBPrimaries) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RGBPrimaries
impl Eq for RGBPrimaries
impl StructuralEq for RGBPrimaries
impl StructuralPartialEq for RGBPrimaries
Auto Trait Implementations§
impl RefUnwindSafe for RGBPrimaries
impl Send for RGBPrimaries
impl Sync for RGBPrimaries
impl Unpin for RGBPrimaries
impl UnwindSafe for RGBPrimaries
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more