UInt

Trait UInt 

Source
pub unsafe trait UInt: Int { }
Expand description

A type representing a [0, N] subset of the integers (or the whole nonnegative integers) Ops may either panic or wrap on overflow/underflow, so use Checked* when needed (Succ/Add/Sub/etc. use them automatically)

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 UInt for u8

Source§

impl UInt for u16

Source§

impl UInt for u32

Source§

impl UInt for u64

Source§

impl UInt for u128

Source§

impl UInt for usize

Implementors§