spirv_std::number

Trait Number

Source
pub trait Number: Scalar { }
Expand description

Abstract trait representing a SPIR-V integer or floating-point type.

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.

Implementations on Foreign Types§

Source§

impl Number for f32

Source§

impl Number for f64

Source§

impl Number for i8

Source§

impl Number for i16

Source§

impl Number for i32

Source§

impl Number for i64

Source§

impl Number for u8

Source§

impl Number for u16

Source§

impl Number for u32

Source§

impl Number for u64

Implementors§