Trait gltf_utils::casts::weights::Cast
[−]
[src]
pub trait Cast { type Output; fn cast_u8(x: [u8; 4]) -> Self::Output; fn cast_u16(x: [u16; 4]) -> Self::Output; fn cast_f32(x: [f32; 4]) -> Self::Output; }
Trait for types which describe casting behaviour.
Associated Types
type Output
Output type.
Required Methods
fn cast_u8(x: [u8; 4]) -> Self::Output
Cast from u8.
fn cast_u16(x: [u16; 4]) -> Self::Output
Cast from u16.
fn cast_f32(x: [f32; 4]) -> Self::Output
Cast from f32.