#[repr(C)]pub struct YUV<T> {
pub y: T,
pub u: T,
pub v: T,
}
Expand description
A generic 3-component pixel, which is usually luma + chroma
Color space of these values is described outside of this struct by enums in the color
module.
Fields§
§y: T
§u: T
§v: T
Trait Implementations§
source§impl<T: PartialEq> PartialEq for YUV<T>
impl<T: PartialEq> PartialEq for YUV<T>
impl<T: Copy> Copy for YUV<T>
impl<T: Eq> Eq for YUV<T>
impl<T> 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> 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