pub trait SliceLayout: Layout {
    type Sample;

    fn sample(&self) -> Texel<Self::Sample>;

    fn len(&self) -> usize { ... }
}
Expand description

A layout that is a slice of samples.

These layouts are represented with a slice of a single type of samples. In particular these can be addressed and mutated independently.

Required Associated Types

The sample type itself.

Required Methods

Get the sample description.

Provided Methods

The number of samples.

A slice with the returned length should have the byte length returned in byte_len.

Implementations on Foreign Types

Implementors