Trait gltf::mesh::util::tex_coords::Cast

source ·
pub trait Cast {
    type Output;

    // Required methods
    fn cast_u8(x: [u8; 2]) -> Self::Output;
    fn cast_u16(x: [u16; 2]) -> Self::Output;
    fn cast_f32(x: [f32; 2]) -> Self::Output;
}
Expand description

Trait for types which describe casting behaviour.

Required Associated Types§

source

type Output

Output type.

Required Methods§

source

fn cast_u8(x: [u8; 2]) -> Self::Output

Cast from u8 pair.

source

fn cast_u16(x: [u16; 2]) -> Self::Output

Cast from u16 pair.

source

fn cast_f32(x: [f32; 2]) -> Self::Output

Cast from f32 pair.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Cast for F32

§

type Output = [f32; 2]

source§

impl Cast for U8

§

type Output = [u8; 2]

source§

impl Cast for U16

§

type Output = [u16; 2]