leb128fmt

Trait UInt

Source
pub trait UInt: Sealed {
    const BITS: u32;
}
Expand description

Sealed trait for supported unsigned integer types.

Required Associated Constants§

Source

const BITS: u32

Size of the type in bits.

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§

const BITS: u32 = 8u32

Source§

impl UInt for u16

Source§

const BITS: u32 = 16u32

Source§

impl UInt for u32

Source§

const BITS: u32 = 32u32

Source§

impl UInt for u64

Source§

const BITS: u32 = 64u32

Source§

impl UInt for u128

Source§

const BITS: u32 = 128u32

Implementors§