Trait Component

Source
pub unsafe trait Component {
    // Required method
    fn is_valid(format: Pixel) -> bool;
}

Required Methods§

Source

fn is_valid(format: Pixel) -> bool

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.

Implementations on Foreign Types§

Source§

impl Component for (u8, u8, u8)

Source§

fn is_valid(format: Pixel) -> bool

Source§

impl Component for (u8, u8, u8, u8)

Source§

fn is_valid(format: Pixel) -> bool

Source§

impl Component for [u8; 3]

Source§

fn is_valid(format: Pixel) -> bool

Source§

impl Component for [u8; 4]

Source§

fn is_valid(format: Pixel) -> bool

Implementors§