Trait spirv_std::scalar::Scalar

source ·
pub unsafe trait Scalar: Copy + Default + Sealed { }
Expand description

Abstract trait representing a SPIR-V scalar type.

Safety

Implementing this trait on non-scalar types breaks assumptions of other unsafe code, and should not be done.

Implementations on Foreign Types§

source§

impl Scalar for f32

source§

impl Scalar for u8

source§

impl Scalar for i16

source§

impl Scalar for u64

source§

impl Scalar for bool

source§

impl Scalar for u32

source§

impl Scalar for i64

source§

impl Scalar for u16

source§

impl Scalar for i8

source§

impl Scalar for f64

source§

impl Scalar for i32

Implementors§