Struct cint::YPrimePbPr
source · [−]#[repr(C)]pub struct YPrimePbPr<ComponentTy = f32> {
pub y: ComponentTy,
pub pb: ComponentTy,
pub pr: ComponentTy,
}
Expand description
A color in the Y’PbPr color space. See discussion of the difference between YCbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article
Since Y’PbPr is a relative color space, it is required to know the RGB space which it was transformed from. We define this as being converted from the EncodedSrgb color space.
Fields
y: ComponentTy
The Y’ (luma) component.
pb: ComponentTy
The Pb (chroma-blue/yellow) component.
pr: ComponentTy
The Pr (chroma-red/green) component.
Trait Implementations
sourceimpl<ComponentTy> AsMut<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
impl<ComponentTy> AsMut<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy> AsRef<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
impl<ComponentTy> AsRef<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy: Clone> Clone for YPrimePbPr<ComponentTy>
impl<ComponentTy: Clone> Clone for YPrimePbPr<ComponentTy>
sourcefn clone(&self) -> YPrimePbPr<ComponentTy>
fn clone(&self) -> YPrimePbPr<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 YPrimePbPr<CTy>
impl<CTy: Clone + Copy> ColorType for YPrimePbPr<CTy>
type ComponentTy = CTy
const SPACE: Spaces = Spaces::YPrimePbPr
const NUM_COMPONENTS: usize = 3usize
sourceimpl<ComponentTy: Debug> Debug for YPrimePbPr<ComponentTy>
impl<ComponentTy: Debug> Debug for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy> From<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
impl<ComponentTy> From<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
sourcefn from([y, pb, pr]: [ComponentTy; 3]) -> YPrimePbPr<ComponentTy>
fn from([y, pb, pr]: [ComponentTy; 3]) -> YPrimePbPr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<Alpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
sourcefn from(col_alpha: Alpha<YPrimePbPr<ComponentTy>>) -> YPrimePbPr<ComponentTy>
fn from(col_alpha: Alpha<YPrimePbPr<ComponentTy>>) -> YPrimePbPr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<YPrimePbPr<ComponentTy>>
) -> YPrimePbPr<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<YPrimePbPr<ComponentTy>>
) -> YPrimePbPr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Hash> Hash for YPrimePbPr<ComponentTy>
impl<ComponentTy: Hash> Hash for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy> Into<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
impl<ComponentTy> Into<[ComponentTy; 3]> for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy: Ord> Ord for YPrimePbPr<ComponentTy>
impl<ComponentTy: Ord> Ord for YPrimePbPr<ComponentTy>
sourceimpl<ComponentTy: PartialEq> PartialEq<YPrimePbPr<ComponentTy>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: PartialEq> PartialEq<YPrimePbPr<ComponentTy>> for YPrimePbPr<ComponentTy>
sourcefn eq(&self, other: &YPrimePbPr<ComponentTy>) -> bool
fn eq(&self, other: &YPrimePbPr<ComponentTy>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &YPrimePbPr<ComponentTy>) -> bool
fn ne(&self, other: &YPrimePbPr<ComponentTy>) -> bool
This method tests for !=
.
sourceimpl<ComponentTy: PartialOrd> PartialOrd<YPrimePbPr<ComponentTy>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd<YPrimePbPr<ComponentTy>> for YPrimePbPr<ComponentTy>
sourcefn partial_cmp(&self, other: &YPrimePbPr<ComponentTy>) -> Option<Ordering>
fn partial_cmp(&self, other: &YPrimePbPr<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 YPrimePbPr<ComponentTy>
impl<ComponentTy: Zeroable> Zeroable for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> Copy for YPrimePbPr<ComponentTy>
impl<ComponentTy: Eq> Eq for YPrimePbPr<ComponentTy>
impl<ComponentTy: Pod> Pod for YPrimePbPr<ComponentTy>
impl<ComponentTy> StructuralEq for YPrimePbPr<ComponentTy>
impl<ComponentTy> StructuralPartialEq for YPrimePbPr<ComponentTy>
Auto Trait Implementations
impl<ComponentTy> RefUnwindSafe for YPrimePbPr<ComponentTy> where
ComponentTy: RefUnwindSafe,
impl<ComponentTy> Send for YPrimePbPr<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for YPrimePbPr<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for YPrimePbPr<ComponentTy> where
ComponentTy: Unpin,
impl<ComponentTy> UnwindSafe for YPrimePbPr<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
.