Skip to main content

IntegerPrimitive

Trait IntegerPrimitive 

Source
pub unsafe trait IntegerPrimitive: Copy + Ord { }
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Built-in integer types (i8, i16, .., i128, isize, u8, u16, .., u128, usize).

Intentionally does not include other integer-repr types like bool or char.

§Safety

Must actually be such a type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§