pub trait Cast {
    type Output;

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

Trait for types which describe casting behaviour.

Required Associated Types§

source

type Output

Output type.

Required Methods§

source

fn cast_i8(x: [i8; 4]) -> Self::Output

Cast from i8.

source

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

Cast from u8.

source

fn cast_i16(x: [i16; 4]) -> Self::Output

Cast from i16.

source

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

Cast from u16.

source

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

Cast from f32.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Cast for i8

§

type Output = [u8; 4]

source§

fn cast_i8(x: [i8; 4]) -> Self::Output

source§

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

source§

fn cast_i16(x: [i16; 4]) -> Self::Output

source§

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

source§

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

Implementors§

source§

impl Cast for F32

§

type Output = [f32; 4]

source§

impl Cast for I8

§

type Output = [i8; 4]

source§

impl Cast for I16

§

type Output = [i16; 4]

source§

impl Cast for U16

§

type Output = [u16; 4]