[][src]Trait valora::prelude::encoding::pixel::RawPixelSized

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

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.

Associated Constants

const CHANNELS: usize

The guaranteed number of channels in the sequence.

Loading content...

Implementations on Foreign Types

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

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

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

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

Loading content...

Implementors

Loading content...