pub(crate) trait NarrowerThan<T> {
    // Required method
    fn truncate_from(wide: T) -> Self;
}

Required Methods§

source

fn truncate_from(wide: T) -> Self

Implementations on Foreign Types§

source§

impl NarrowerThan<u16> for u8

source§

fn truncate_from(wide: u16) -> Self

source§

impl NarrowerThan<u32> for u8

source§

fn truncate_from(wide: u32) -> Self

source§

impl NarrowerThan<u64> for u8

source§

fn truncate_from(wide: u64) -> Self

source§

impl NarrowerThan<u64> for u16

source§

fn truncate_from(wide: u64) -> Self

source§

impl NarrowerThan<u128> for u8

source§

fn truncate_from(wide: u128) -> Self

source§

impl NarrowerThan<u64> for u32

source§

fn truncate_from(wide: u64) -> Self

source§

impl NarrowerThan<u128> for u64

source§

fn truncate_from(wide: u128) -> Self

source§

impl NarrowerThan<u32> for u16

source§

fn truncate_from(wide: u32) -> Self

source§

impl NarrowerThan<u128> for u32

source§

fn truncate_from(wide: u128) -> Self

source§

impl NarrowerThan<u128> for u16

source§

fn truncate_from(wide: u128) -> Self

Implementors§