rendy_texture::pixel

Trait PixelRepr

Source
pub trait PixelRepr<S, T> {
    type Repr: Sized + Debug + Default + Copy + Send + Sync + 'static;
}
Expand description

Pixel representation as a Rust type

Required Associated Types§

Source

type Repr: Sized + Debug + Default + Copy + Send + Sync + 'static

Newtype to reduce verbosity of representing a Pixel in Rust

Implementors§

Source§

impl<S, T> PixelRepr<S, T> for Abgr
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 4]

Source§

impl<S, T> PixelRepr<S, T> for Bgr
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 3]

Source§

impl<S, T> PixelRepr<S, T> for Bgra
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 4]

Source§

impl<S, T> PixelRepr<S, T> for R
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 1]

Source§

impl<S, T> PixelRepr<S, T> for Rg
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 2]

Source§

impl<S, T> PixelRepr<S, T> for Rgb
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 3]

Source§

impl<S, T> PixelRepr<S, T> for Rgba
where S: ChannelSize, T: ChannelRepr<S>,

Source§

type Repr = [<T as ChannelRepr<S>>::Repr; 4]