pub unsafe trait RawPixelSized<T>: Sized {
    const CHANNELS: usize;
}
Expand description

A contiguous sequence of pixel channels with a known length.

It’s used when converting to and from raw pixel data and should only be implemented for types with either a suitable in-memory representation.

Required Associated Constants§

source

const CHANNELS: usize

The guaranteed number of channels in the sequence.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> RawPixelSized<T> for [T; 1]

source§

const CHANNELS: usize = 1usize

source§

impl<T> RawPixelSized<T> for [T; 2]

source§

const CHANNELS: usize = 2usize

source§

impl<T> RawPixelSized<T> for [T; 3]

source§

const CHANNELS: usize = 3usize

source§

impl<T> RawPixelSized<T> for [T; 4]

source§

const CHANNELS: usize = 4usize

Implementors§