Trait MewVertexFormat

Source
pub trait MewVertexFormat {
    type Bytes;
    type Inner;

    // Required methods
    fn from_inner(inner: Self::Inner) -> Self;
    fn from_bytes(bytes: Self::Bytes) -> Self;
    fn zeroed() -> Self;
}

Required Associated Types§

Required Methods§

Source

fn from_inner(inner: Self::Inner) -> Self

Source

fn from_bytes(bytes: Self::Bytes) -> Self

Source

fn zeroed() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MewVertexFormat for Float16

Source§

type Bytes = [u8; 2]

Source§

type Inner = [u16; 1]

Source§

impl MewVertexFormat for Float16x2

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u16; 2]

Source§

impl MewVertexFormat for Float16x4

Source§

type Bytes = [u8; 8]

Source§

type Inner = [u16; 4]

Source§

impl MewVertexFormat for Float32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [f32; 1]

Source§

impl MewVertexFormat for Float32x2

Source§

type Bytes = [u8; 8]

Source§

type Inner = [f32; 2]

Source§

impl MewVertexFormat for Float32x3

Source§

type Bytes = [u8; 12]

Source§

type Inner = [f32; 3]

Source§

impl MewVertexFormat for Float32x4

Source§

type Bytes = [u8; 16]

Source§

type Inner = [f32; 4]

Source§

impl MewVertexFormat for Float64

Source§

type Bytes = [u8; 8]

Source§

type Inner = [f64; 1]

Source§

impl MewVertexFormat for Float64x2

Source§

type Bytes = [u8; 16]

Source§

type Inner = [f64; 2]

Source§

impl MewVertexFormat for Float64x3

Source§

type Bytes = [u8; 24]

Source§

type Inner = [f64; 3]

Source§

impl MewVertexFormat for Float64x4

Source§

type Bytes = [u8; 32]

Source§

type Inner = [f64; 4]

Source§

impl MewVertexFormat for Sint8

Source§

type Bytes = [u8; 1]

Source§

type Inner = [i8; 1]

Source§

impl MewVertexFormat for Sint8x2

Source§

type Bytes = [u8; 2]

Source§

type Inner = [i8; 2]

Source§

impl MewVertexFormat for Sint8x4

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i8; 4]

Source§

impl MewVertexFormat for Sint16

Source§

type Bytes = [u8; 2]

Source§

type Inner = [i16; 1]

Source§

impl MewVertexFormat for Sint16x2

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i16; 2]

Source§

impl MewVertexFormat for Sint16x4

Source§

type Bytes = [u8; 8]

Source§

type Inner = [i16; 4]

Source§

impl MewVertexFormat for Sint32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i32; 1]

Source§

impl MewVertexFormat for Sint32x2

Source§

type Bytes = [u8; 8]

Source§

type Inner = [i32; 2]

Source§

impl MewVertexFormat for Sint32x3

Source§

type Bytes = [u8; 12]

Source§

type Inner = [i32; 3]

Source§

impl MewVertexFormat for Sint32x4

Source§

type Bytes = [u8; 16]

Source§

type Inner = [i32; 4]

Source§

impl MewVertexFormat for Snorm8

Source§

type Bytes = [u8; 1]

Source§

type Inner = [i8; 1]

Source§

impl MewVertexFormat for Snorm8x2

Source§

type Bytes = [u8; 2]

Source§

type Inner = [i8; 2]

Source§

impl MewVertexFormat for Snorm8x4

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i8; 4]

Source§

impl MewVertexFormat for Snorm16

Source§

type Bytes = [u8; 2]

Source§

type Inner = [i16; 1]

Source§

impl MewVertexFormat for Snorm16x2

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i16; 2]

Source§

impl MewVertexFormat for Snorm16x4

Source§

type Bytes = [u8; 8]

Source§

type Inner = [i16; 4]

Source§

impl MewVertexFormat for Uint8

Source§

type Bytes = [u8; 1]

Source§

type Inner = [u8; 1]

Source§

impl MewVertexFormat for Uint8x2

Source§

type Bytes = [u8; 2]

Source§

type Inner = [u8; 2]

Source§

impl MewVertexFormat for Uint8x4

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u8; 4]

Source§

impl MewVertexFormat for Uint16

Source§

type Bytes = [u8; 2]

Source§

type Inner = [u16; 1]

Source§

impl MewVertexFormat for Uint16x2

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u16; 2]

Source§

impl MewVertexFormat for Uint16x4

Source§

type Bytes = [u8; 8]

Source§

type Inner = [u16; 4]

Source§

impl MewVertexFormat for Uint32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u32; 1]

Source§

impl MewVertexFormat for Uint32x2

Source§

type Bytes = [u8; 8]

Source§

type Inner = [u32; 2]

Source§

impl MewVertexFormat for Uint32x3

Source§

type Bytes = [u8; 12]

Source§

type Inner = [u32; 3]

Source§

impl MewVertexFormat for Uint32x4

Source§

type Bytes = [u8; 16]

Source§

type Inner = [u32; 4]

Source§

impl MewVertexFormat for Unorm8

Source§

type Bytes = [u8; 1]

Source§

type Inner = [u8; 1]

Source§

impl MewVertexFormat for Unorm8x2

Source§

type Bytes = [u8; 2]

Source§

type Inner = [u8; 2]

Source§

impl MewVertexFormat for Unorm8x4

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u8; 4]

Source§

impl MewVertexFormat for Unorm16

Source§

type Bytes = [u8; 2]

Source§

type Inner = [u16; 1]

Source§

impl MewVertexFormat for Unorm16x2

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u16; 2]

Source§

impl MewVertexFormat for Unorm16x4

Source§

type Bytes = [u8; 8]

Source§

type Inner = [u16; 4]