Struct cint::EncodedBt2100PQ
source · [−]#[repr(C)]pub struct EncodedBt2100PQ<ComponentTy = f32> {
pub r: ComponentTy,
pub g: ComponentTy,
pub b: ComponentTy,
}
Expand description
A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer) transfer function.
This color space uses the BT.2020 primaries and D65 white point and the ST 2084/“PQ” transfer function. It is nonlinear.
Fields
r: ComponentTy
The red component.
g: ComponentTy
The green component.
b: ComponentTy
The blue component.
Trait Implementations
sourceimpl<ComponentTy> AsMut<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> AsMut<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy: Clone> Clone for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Clone> Clone for EncodedBt2100PQ<ComponentTy>
sourcefn clone(&self) -> EncodedBt2100PQ<ComponentTy>
fn clone(&self) -> EncodedBt2100PQ<ComponentTy>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<CTy: Clone + Copy> ColorType for EncodedBt2100PQ<CTy>
impl<CTy: Clone + Copy> ColorType for EncodedBt2100PQ<CTy>
type ComponentTy = CTy
const SPACE: Spaces = Spaces::EncodedBt2100PQ
const NUM_COMPONENTS: usize = 3usize
sourceimpl<ComponentTy: Debug> Debug for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Debug> Debug for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy> From<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> From<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
sourcefn from([r, g, b]: [ComponentTy; 3]) -> EncodedBt2100PQ<ComponentTy>
fn from([r, g, b]: [ComponentTy; 3]) -> EncodedBt2100PQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
sourcefn from(
col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Hash> Hash for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Hash> Hash for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy> Into<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy: Ord> Ord for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Ord> Ord for EncodedBt2100PQ<ComponentTy>
sourceimpl<ComponentTy: PartialEq> PartialEq<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: PartialEq> PartialEq<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
sourcefn eq(&self, other: &EncodedBt2100PQ<ComponentTy>) -> bool
fn eq(&self, other: &EncodedBt2100PQ<ComponentTy>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EncodedBt2100PQ<ComponentTy>) -> bool
fn ne(&self, other: &EncodedBt2100PQ<ComponentTy>) -> bool
This method tests for !=
.
sourceimpl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
sourcefn partial_cmp(&self, other: &EncodedBt2100PQ<ComponentTy>) -> Option<Ordering>
fn partial_cmp(&self, other: &EncodedBt2100PQ<ComponentTy>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn le(&self, other: &Rhs) -> bool
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
sourceimpl<ComponentTy: Zeroable> Zeroable for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Zeroable> Zeroable for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> Copy for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Eq> Eq for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Pod> Pod for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> StructuralEq for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy> StructuralPartialEq for EncodedBt2100PQ<ComponentTy>
Auto Trait Implementations
impl<ComponentTy> RefUnwindSafe for EncodedBt2100PQ<ComponentTy> where
ComponentTy: RefUnwindSafe,
impl<ComponentTy> Send for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Unpin,
impl<ComponentTy> UnwindSafe for EncodedBt2100PQ<ComponentTy> where
ComponentTy: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
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
. Read more
sourcefn 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
.