pub struct YUV<T> {
pub y: T,
pub u: T,
pub v: T,
}Expand description
A pixel in YUV (YCbCr, YCgCo, etc.) planar color space
Fields§
§y: TLuma
u: TFirst chroma channel (Cb)
v: TSecond chroma channel (Cr)
Trait Implementations§
impl<T: Copy> Copy for YUV<T>
impl<T: Eq> Eq for YUV<T>
impl<T: PartialEq> StructuralPartialEq for YUV<T>
Auto Trait Implementations§
impl<T> Freeze for YUV<T>where
T: Freeze,
impl<T> RefUnwindSafe for YUV<T>where
T: RefUnwindSafe,
impl<T> Send for YUV<T>where
T: Send,
impl<T> Sync for YUV<T>where
T: Sync,
impl<T> Unpin for YUV<T>where
T: Unpin,
impl<T> UnsafeUnpin for YUV<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for YUV<T>where
T: 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