Skip to main content

UInt

Trait UInt 

Source
pub trait UInt:
    Number
    + From<u8>
    + Copy
    + Clone {
    const ZERO: Self;
    const BITS: u8;

    // Required method
    fn little(&self) -> u8;
}
Expand description

Trait implemented for unsigned integers

Required Associated Constants§

Source

const ZERO: Self

The minimum value of an unsigned integer, 0

Source

const BITS: u8

Size of the primitive, in bits

Required Methods§

Source

fn little(&self) -> u8

Grab the little byte.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl UInt for u8

Source§

const BITS: u8 = 8

Source§

const ZERO: u8 = u8::MIN

Source§

fn little(&self) -> u8

Source§

impl UInt for u16

Source§

const BITS: u8 = 16

Source§

const ZERO: u16 = u16::MIN

Source§

fn little(&self) -> u8

Source§

impl UInt for u32

Source§

const BITS: u8 = 32

Source§

const ZERO: u32 = u32::MIN

Source§

fn little(&self) -> u8

Source§

impl UInt for u64

Source§

const BITS: u8 = 64

Source§

const ZERO: u64 = u64::MIN

Source§

fn little(&self) -> u8

Source§

impl UInt for u128

Source§

const BITS: u8 = 128

Source§

const ZERO: u128 = u128::MIN

Source§

fn little(&self) -> u8

Implementors§