Trait Number

Source
pub unsafe trait Number: Scalar { }
Expand description

Abstract trait representing a SPIR-V integer or floating-point type. Unlike Scalar, excludes the boolean type.

§Safety

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

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§