Trait gltf::mesh::util::indices::Cast

source ·
pub trait Cast {
    type Output;

    // Required methods
    fn cast_u8(x: u8) -> Self::Output;
    fn cast_u16(x: u16) -> Self::Output;
    fn cast_u32(x: u32) -> 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) -> Self::Output

Cast from u8.

source

fn cast_u16(x: u16) -> Self::Output

Cast from u16.

source

fn cast_u32(x: u32) -> Self::Output

Cast from u32.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Cast for U32

§

type Output = u32