pub unsafe trait Integer: PrimInt + Scalar {
    const WIDTH: usize;
    const SIGNED: bool;
}
Expand description

Abstract trait representing any SPIR-V integer type.

Safety

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

Required Associated Constants§

Width of the integer, in bits.

If the integer is signed: true means signed, false means unsigned.

Implementations on Foreign Types§

Implementors§