Skip to main content

PixelType

Trait PixelType 

Source
pub trait PixelType: Pod {
    const LAYOUT: SampleLayout;
}
Expand description

Full re-export of zenpixels core types (zero module name collisions!). Compile-time pixel type marker for zero-copy imgref / typed helpers.

Required Associated Constants§

Source

const LAYOUT: SampleLayout

Expected SampleLayout for this Rust pixel struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S> PixelType for Bgr<S>
where S: StorageSample,

Source§

impl<S> PixelType for Bgra<S>
where S: StorageSample,

Source§

impl<S> PixelType for GrayAlpha_v08<S>
where S: StorageSample,

Source§

impl<S> PixelType for Gray_v08<S>
where S: StorageSample,

Source§

impl<S> PixelType for Rgb<S>
where S: StorageSample,

Source§

impl<S> PixelType for Rgba<S>
where S: StorageSample,

Implementors§

Source§

impl PixelType for Bgrx

Source§

const LAYOUT: SampleLayout = SampleLayout::BGRX8

Source§

impl PixelType for GrayAlpha8

Source§

const LAYOUT: SampleLayout = SampleLayout::GRAYA8

Source§

impl PixelType for GrayAlpha16

Source§

const LAYOUT: SampleLayout = SampleLayout::GRAYA16

Source§

impl PixelType for GrayAlphaF16

Source§

const LAYOUT: SampleLayout = SampleLayout::GRAYAF16

Source§

impl PixelType for GrayAlphaF32

Source§

const LAYOUT: SampleLayout = SampleLayout::GRAYAF32

Source§

impl PixelType for Rgbx

Source§

const LAYOUT: SampleLayout = SampleLayout::RGBX8