Trait lindel::IdealKey[][src]

pub trait IdealKey<const N: usize> {
    type Key;
}

Given a data type and a number, it yields the smallest unsigned integer that’s at least N times larger.

Implemented by brute force.

Associated Types

Loading content...

Implementations on Foreign Types

impl IdealKey<6_usize> for u16[src]

type Key = u128

impl IdealKey<2_usize> for u32[src]

type Key = u64

impl IdealKey<15_usize> for u8[src]

type Key = u128

impl IdealKey<10_usize> for u8[src]

type Key = u128

impl IdealKey<8_usize> for u8[src]

type Key = u64

impl IdealKey<4_usize> for u16[src]

type Key = u64

impl IdealKey<1_usize> for u64[src]

type Key = u64

impl IdealKey<3_usize> for u32[src]

type Key = u128

impl IdealKey<14_usize> for u8[src]

type Key = u128

impl IdealKey<5_usize> for u16[src]

type Key = u128

impl IdealKey<5_usize> for u8[src]

type Key = u64

impl IdealKey<8_usize> for u16[src]

type Key = u128

impl IdealKey<6_usize> for u8[src]

type Key = u64

impl IdealKey<3_usize> for u16[src]

type Key = u64

impl IdealKey<9_usize> for u8[src]

type Key = u128

impl IdealKey<1_usize> for u16[src]

type Key = u16

impl IdealKey<16_usize> for u8[src]

type Key = u128

impl IdealKey<1_usize> for u128[src]

type Key = u128

impl IdealKey<2_usize> for u8[src]

type Key = u16

impl IdealKey<1_usize> for u32[src]

type Key = u32

impl IdealKey<2_usize> for u16[src]

type Key = u32

impl IdealKey<4_usize> for u32[src]

type Key = u128

impl IdealKey<13_usize> for u8[src]

type Key = u128

impl IdealKey<7_usize> for u16[src]

type Key = u128

impl IdealKey<4_usize> for u8[src]

type Key = u32

impl IdealKey<11_usize> for u8[src]

type Key = u128

impl IdealKey<12_usize> for u8[src]

type Key = u128

impl IdealKey<2_usize> for u64[src]

type Key = u128

impl IdealKey<3_usize> for u8[src]

type Key = u32

impl IdealKey<7_usize> for u8[src]

type Key = u64

impl IdealKey<1_usize> for u8[src]

type Key = u8

Loading content...

Implementors

Loading content...