#[repr(C)]pub struct DciXYZPrime<ComponentTy = f32> {
pub x: ComponentTy,
pub y: ComponentTy,
pub z: ComponentTy,
}Expand description
A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering.
This color space uses the CIE XYZ primaries, with special DCI white point and pure 2.6 gamma encoding.
Fields§
§x: ComponentTyThe X’ component.
y: ComponentTyThe Y’ component.
z: ComponentTyThe Z’ component.
Trait Implementations§
Source§impl<ComponentTy> AsMut<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
impl<ComponentTy> AsMut<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 3]
fn as_mut(&mut self) -> &mut [ComponentTy; 3]
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<ComponentTy> AsRef<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
impl<ComponentTy> AsRef<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
Source§fn as_ref(&self) -> &[ComponentTy; 3]
fn as_ref(&self) -> &[ComponentTy; 3]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<ComponentTy: Clone> Clone for DciXYZPrime<ComponentTy>
impl<ComponentTy: Clone> Clone for DciXYZPrime<ComponentTy>
Source§fn clone(&self) -> DciXYZPrime<ComponentTy>
fn clone(&self) -> DciXYZPrime<ComponentTy>
Returns a duplicate 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<ComponentTy: Debug> Debug for DciXYZPrime<ComponentTy>
impl<ComponentTy: Debug> Debug for DciXYZPrime<ComponentTy>
Source§impl<ComponentTy> From<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
impl<ComponentTy> From<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
Source§fn from([x, y, z]: [ComponentTy; 3]) -> DciXYZPrime<ComponentTy>
fn from([x, y, z]: [ComponentTy; 3]) -> DciXYZPrime<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
Source§fn from(col_alpha: Alpha<DciXYZPrime<ComponentTy>>) -> DciXYZPrime<ComponentTy>
fn from(col_alpha: Alpha<DciXYZPrime<ComponentTy>>) -> DciXYZPrime<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
Source§fn from(
col_alpha: PremultipliedAlpha<DciXYZPrime<ComponentTy>>,
) -> DciXYZPrime<ComponentTy>
fn from( col_alpha: PremultipliedAlpha<DciXYZPrime<ComponentTy>>, ) -> DciXYZPrime<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Hash> Hash for DciXYZPrime<ComponentTy>
impl<ComponentTy: Hash> Hash for DciXYZPrime<ComponentTy>
Source§impl<ComponentTy> Into<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
impl<ComponentTy> Into<[ComponentTy; 3]> for DciXYZPrime<ComponentTy>
Source§fn into(self) -> [ComponentTy; 3]
fn into(self) -> [ComponentTy; 3]
Converts this type into the (usually inferred) input type.
Source§impl<ComponentTy: Ord> Ord for DciXYZPrime<ComponentTy>
impl<ComponentTy: Ord> Ord for DciXYZPrime<ComponentTy>
Source§fn cmp(&self, other: &DciXYZPrime<ComponentTy>) -> Ordering
fn cmp(&self, other: &DciXYZPrime<ComponentTy>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<ComponentTy: PartialEq> PartialEq for DciXYZPrime<ComponentTy>
impl<ComponentTy: PartialEq> PartialEq for DciXYZPrime<ComponentTy>
Source§impl<ComponentTy: PartialOrd> PartialOrd for DciXYZPrime<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd for DciXYZPrime<ComponentTy>
Source§impl<ComponentTy: Zeroable> Zeroable for DciXYZPrime<ComponentTy>
impl<ComponentTy: Zeroable> Zeroable for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> Copy for DciXYZPrime<ComponentTy>
impl<ComponentTy: Eq> Eq for DciXYZPrime<ComponentTy>
impl<ComponentTy: Pod> Pod for DciXYZPrime<ComponentTy>
impl<ComponentTy> StructuralPartialEq for DciXYZPrime<ComponentTy>
Auto Trait Implementations§
impl<ComponentTy> Freeze for DciXYZPrime<ComponentTy>where
ComponentTy: Freeze,
impl<ComponentTy> RefUnwindSafe for DciXYZPrime<ComponentTy>where
ComponentTy: RefUnwindSafe,
impl<ComponentTy> Send for DciXYZPrime<ComponentTy>where
ComponentTy: Send,
impl<ComponentTy> Sync for DciXYZPrime<ComponentTy>where
ComponentTy: Sync,
impl<ComponentTy> Unpin for DciXYZPrime<ComponentTy>where
ComponentTy: Unpin,
impl<ComponentTy> UnwindSafe for DciXYZPrime<ComponentTy>where
ComponentTy: UnwindSafe,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.