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

pub trait Cast {
    type Output;
    fn cast_u8(x: [u8; 2]) -> Self::Output;
fn cast_u16(x: [u16; 2]) -> Self::Output;
fn cast_f32(x: [f32; 2]) -> Self::Output; }
This is supported on feature="utils" only.

Trait for types which describe casting behaviour.

Associated Types

type Output

This is supported on feature="utils" only.

Output type.

Loading content...

Required methods

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

This is supported on feature="utils" only.

Cast from u8 pair.

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

This is supported on feature="utils" only.

Cast from u16 pair.

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

This is supported on feature="utils" only.

Cast from f32 pair.

Loading content...

Implementors

impl Cast for F32[src]

type Output = [f32; 2]

This is supported on feature="utils" only.

impl Cast for U16[src]

type Output = [u16; 2]

This is supported on feature="utils" only.

impl Cast for U8[src]

type Output = [u8; 2]

This is supported on feature="utils" only.
Loading content...