Trait Pixel

Source
pub trait Pixel: Copy {
    const DEFAULT: Self;
    const FORMAT: CaptureFormat;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Pixel for Bgr

Source§

const DEFAULT: Self = Self::BLACK

Source§

const FORMAT: CaptureFormat = CaptureFormat::Bgr

Source§

impl Pixel for Bgra

Source§

const DEFAULT: Self = Self::BLACK

Source§

const FORMAT: CaptureFormat = CaptureFormat::Bgra

Source§

impl Pixel for Rgb

Source§

const DEFAULT: Self = Self::BLACK

Source§

const FORMAT: CaptureFormat = CaptureFormat::Rgb

Source§

impl Pixel for Rgba

Source§

const DEFAULT: Self = Self::BLACK

Source§

const FORMAT: CaptureFormat = CaptureFormat::Rgba