Skip to main content

SmallestInt

Trait SmallestInt 

Source
pub trait SmallestInt {
    type T;
    type U;

    // Required methods
    fn sign_extend(raw: Self::U, bits: usize) -> Self::T;
    fn mask_to_unsigned(val: Self::T, bits: usize) -> Self::U;
}

Required Associated Types§

Source

type T

Source

type U

Required Methods§

Source

fn sign_extend(raw: Self::U, bits: usize) -> Self::T

Source

fn mask_to_unsigned(val: Self::T, bits: usize) -> Self::U

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl SmallestInt for SizeSelector<1>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<2>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<3>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<4>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<5>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<6>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<7>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<8>

Source§

type T = i8

Source§

type U = u8

Source§

impl SmallestInt for SizeSelector<9>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<10>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<11>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<12>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<13>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<14>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<15>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<16>

Source§

type T = i16

Source§

type U = u16

Source§

impl SmallestInt for SizeSelector<17>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<18>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<19>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<20>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<21>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<22>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<23>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<24>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<25>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<26>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<27>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<28>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<29>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<30>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<31>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<32>

Source§

type T = i32

Source§

type U = u32

Source§

impl SmallestInt for SizeSelector<33>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<34>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<35>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<36>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<37>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<38>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<39>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<40>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<41>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<42>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<43>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<44>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<45>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<46>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<47>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<48>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<49>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<50>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<51>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<52>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<53>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<54>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<55>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<56>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<57>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<58>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<59>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<60>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<61>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<62>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<63>

Source§

type T = i64

Source§

type U = u64

Source§

impl SmallestInt for SizeSelector<64>

Source§

type T = i64

Source§

type U = u64