imageproc::definitions

Trait HasBlack

Source
pub trait HasBlack {
    // Required method
    fn black() -> Self;
}
Expand description

Pixels which have a named Black value.

Required Methods§

Source

fn black() -> Self

Returns a black pixel of this type.

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 HasBlack for Luma<u8>

Source§

fn black() -> Self

Source§

impl HasBlack for Luma<u16>

Source§

fn black() -> Self

Source§

impl HasBlack for LumaA<u8>

Source§

fn black() -> Self

Source§

impl HasBlack for LumaA<u16>

Source§

fn black() -> Self

Source§

impl HasBlack for Rgb<u8>

Source§

fn black() -> Self

Source§

impl HasBlack for Rgb<u16>

Source§

fn black() -> Self

Source§

impl HasBlack for Rgba<u8>

Source§

fn black() -> Self

Source§

impl HasBlack for Rgba<u16>

Source§

fn black() -> Self

Implementors§