Trait spirv_std::scalar::Scalar

source ·
pub unsafe trait Scalar: VectorOrScalar<Scalar = Self> + 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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Scalar for bool

source§

impl Scalar for f32

source§

impl Scalar for f64

source§

impl Scalar for i8

source§

impl Scalar for i16

source§

impl Scalar for i32

source§

impl Scalar for i64

source§

impl Scalar for u8

source§

impl Scalar for u16

source§

impl Scalar for u32

source§

impl Scalar for u64

Implementors§