[][src]Trait astcenc_rs::DataType

pub trait DataType: Sized {
    const TYPE: Type;

    fn as_u8s(array: &[Self]) -> &[u8];
fn as_u8s_mut(array: &mut [Self]) -> &mut [u8]; }

A valid type for a subpixel.

Associated Constants

const TYPE: Type

The runtime subpixel type associated with this compile-time type.

Loading content...

Required methods

fn as_u8s(array: &[Self]) -> &[u8]

Convert an immutable array of Self to bytes.

fn as_u8s_mut(array: &mut [Self]) -> &mut [u8]

Convert a mutable array of Self to bytes.

Loading content...

Implementations on Foreign Types

impl DataType for u8[src]

impl DataType for f32[src]

impl DataType for f16[src]

Loading content...

Implementors

Loading content...