Trait dunge::uniform::Value

source ·
pub trait Value: Sealed {
    type Type;
    type Data: AsRef<[u8]>;

    const TYPE: ValueType;

    // Required method
    fn value(self) -> Self::Data;
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn value(self) -> Self::Data

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Value for f32

source§

const TYPE: ValueType = _

§

type Type = f32

§

type Data = Data

source§

fn value(self) -> Self::Data

source§

impl Value for [f32; 2]

source§

const TYPE: ValueType = _

§

type Type = Vec2<f32>

§

type Data = Data

source§

fn value(self) -> Self::Data

source§

impl Value for [f32; 3]

source§

const TYPE: ValueType = _

§

type Type = Vec3<f32>

§

type Data = Data

source§

fn value(self) -> Self::Data

source§

impl Value for [f32; 4]

source§

const TYPE: ValueType = _

§

type Type = Vec4<f32>

§

type Data = Data

source§

fn value(self) -> Self::Data

source§

impl Value for [[f32; 2]; 2]

source§

const TYPE: ValueType = _

§

type Type = Mat2

§

type Data = Data

source§

fn value(self) -> Self::Data

source§

impl Value for [[f32; 3]; 3]

source§

const TYPE: ValueType = _

§

type Type = Mat3

§

type Data = Data<9>

source§

fn value(self) -> Self::Data

source§

impl Value for [[f32; 4]; 4]

source§

const TYPE: ValueType = _

§

type Type = Mat4

§

type Data = Data<16>

source§

fn value(self) -> Self::Data

Implementors§