Trait gltf::mesh::util::colors::Cast[][src]

pub trait Cast {
    type Output;
    fn cast_rgb_u8(x: [u8; 3]) -> Self::Output;
fn cast_rgb_u16(x: [u16; 3]) -> Self::Output;
fn cast_rgb_f32(x: [f32; 3]) -> Self::Output;
fn cast_rgba_u8(x: [u8; 4]) -> Self::Output;
fn cast_rgba_u16(x: [u16; 4]) -> Self::Output;
fn cast_rgba_f32(x: [f32; 4]) -> Self::Output; }

Trait for types which describe casting behaviour.

Associated Types

Output type.

Required Methods

Cast from RGB u8.

Cast from RGB u16.

Cast from RGB f32.

Cast from RGBA u8.

Cast from RGBA u16.

Cast from RGBA f32.

Implementors