pub trait PixelComponent
where Self: Sized + Copy + Debug + PartialEq + 'static,
{ type CountOfComponentValues: GetCountOfValues; // Provided method fn count_of_values() -> usize { ... } }
Expand description

Information about one component of pixel.

Required Associated Types§

source

type CountOfComponentValues: GetCountOfValues

Type that provides information about a count of available values of one pixel’s component

Provided Methods§

source

fn count_of_values() -> usize

Count of available values of one pixel’s component

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PixelComponent for f32

source§

impl PixelComponent for i32

source§

impl PixelComponent for u8

source§

impl PixelComponent for u16

Implementors§