Skip to main content

WidthLE

Trait WidthLE 

Source
pub trait WidthLE<Target>: Copy {
    // Required method
    fn widen_into(self) -> Target;
}
Expand description

Trait expressing “this storage type can losslessly widen to the target storage type”. Implemented for every (narrower, wider) signed-integer storage pair the crate ships, plus the reflexive (W → W) case.

Required Methods§

Source

fn widen_into(self) -> Target

Widens self to the Target storage type. Lossless by construction — Target’s range strictly covers Self’s.

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 WidthLE<Int<2>> for i32

Source§

fn widen_into(self) -> Int<2>

Source§

impl WidthLE<Int<2>> for i64

Source§

fn widen_into(self) -> Int<2>

Source§

impl WidthLE<Int<3>> for i32

Source§

fn widen_into(self) -> Int<3>

Source§

impl WidthLE<Int<3>> for i64

Source§

fn widen_into(self) -> Int<3>

Source§

impl WidthLE<Int<3>> for i128

Source§

fn widen_into(self) -> Int<3>

Source§

impl WidthLE<Int<4>> for i32

Source§

fn widen_into(self) -> Int<4>

Source§

impl WidthLE<Int<4>> for i64

Source§

fn widen_into(self) -> Int<4>

Source§

impl WidthLE<Int<4>> for i128

Source§

fn widen_into(self) -> Int<4>

Source§

impl WidthLE<Int<6>> for i32

Source§

fn widen_into(self) -> Int<6>

Source§

impl WidthLE<Int<6>> for i64

Source§

fn widen_into(self) -> Int<6>

Source§

impl WidthLE<Int<6>> for i128

Source§

fn widen_into(self) -> Int<6>

Source§

impl WidthLE<Int<8>> for i32

Source§

fn widen_into(self) -> Int<8>

Source§

impl WidthLE<Int<8>> for i64

Source§

fn widen_into(self) -> Int<8>

Source§

impl WidthLE<Int<8>> for i128

Source§

fn widen_into(self) -> Int<8>

Source§

impl WidthLE<Int<12>> for i32

Source§

fn widen_into(self) -> Int<12>

Source§

impl WidthLE<Int<12>> for i64

Source§

fn widen_into(self) -> Int<12>

Source§

impl WidthLE<Int<12>> for i128

Source§

fn widen_into(self) -> Int<12>

Source§

impl WidthLE<Int<16>> for i32

Source§

fn widen_into(self) -> Int<16>

Source§

impl WidthLE<Int<16>> for i64

Source§

fn widen_into(self) -> Int<16>

Source§

impl WidthLE<Int<16>> for i128

Source§

fn widen_into(self) -> Int<16>

Source§

impl WidthLE<Int<24>> for i32

Source§

fn widen_into(self) -> Int<24>

Source§

impl WidthLE<Int<24>> for i64

Source§

fn widen_into(self) -> Int<24>

Source§

impl WidthLE<Int<24>> for i128

Source§

fn widen_into(self) -> Int<24>

Source§

impl WidthLE<Int<32>> for i32

Source§

fn widen_into(self) -> Int<32>

Source§

impl WidthLE<Int<32>> for i64

Source§

fn widen_into(self) -> Int<32>

Source§

impl WidthLE<Int<32>> for i128

Source§

fn widen_into(self) -> Int<32>

Source§

impl WidthLE<Int<48>> for i32

Source§

fn widen_into(self) -> Int<48>

Source§

impl WidthLE<Int<48>> for i64

Source§

fn widen_into(self) -> Int<48>

Source§

impl WidthLE<Int<48>> for i128

Source§

fn widen_into(self) -> Int<48>

Source§

impl WidthLE<Int<64>> for i32

Source§

fn widen_into(self) -> Int<64>

Source§

impl WidthLE<Int<64>> for i64

Source§

fn widen_into(self) -> Int<64>

Source§

impl WidthLE<Int<64>> for i128

Source§

fn widen_into(self) -> Int<64>

Source§

impl WidthLE<i32> for i32

Source§

impl WidthLE<i64> for i32

Source§

impl WidthLE<i64> for i64

Source§

impl WidthLE<i128> for i32

Source§

impl WidthLE<i128> for i64

Source§

impl WidthLE<i128> for i128

Implementors§

Source§

impl WidthLE<Int<1>> for Int<1>

Source§

impl WidthLE<Int<2>> for Int<1>

Source§

impl WidthLE<Int<2>> for Int<2>

Source§

impl WidthLE<Int<3>> for Int<1>

Source§

impl WidthLE<Int<3>> for Int<2>

Source§

impl WidthLE<Int<3>> for Int<3>

Source§

impl WidthLE<Int<4>> for Int<1>

Source§

impl WidthLE<Int<4>> for Int<2>

Source§

impl WidthLE<Int<4>> for Int<3>

Source§

impl WidthLE<Int<4>> for Int<4>

Source§

impl WidthLE<Int<6>> for Int<1>

Source§

impl WidthLE<Int<6>> for Int<2>

Source§

impl WidthLE<Int<6>> for Int<3>

Source§

impl WidthLE<Int<6>> for Int<4>

Source§

impl WidthLE<Int<6>> for Int<6>

Source§

impl WidthLE<Int<8>> for Int<1>

Source§

impl WidthLE<Int<8>> for Int<2>

Source§

impl WidthLE<Int<8>> for Int<3>

Source§

impl WidthLE<Int<8>> for Int<4>

Source§

impl WidthLE<Int<8>> for Int<6>

Source§

impl WidthLE<Int<8>> for Int<8>

Source§

impl WidthLE<Int<12>> for Int<1>

Source§

impl WidthLE<Int<12>> for Int<2>

Source§

impl WidthLE<Int<12>> for Int<3>

Source§

impl WidthLE<Int<12>> for Int<4>

Source§

impl WidthLE<Int<12>> for Int<6>

Source§

impl WidthLE<Int<12>> for Int<8>

Source§

impl WidthLE<Int<12>> for Int<12>

Source§

impl WidthLE<Int<16>> for Int<1>

Source§

impl WidthLE<Int<16>> for Int<2>

Source§

impl WidthLE<Int<16>> for Int<3>

Source§

impl WidthLE<Int<16>> for Int<4>

Source§

impl WidthLE<Int<16>> for Int<6>

Source§

impl WidthLE<Int<16>> for Int<8>

Source§

impl WidthLE<Int<16>> for Int<12>

Source§

impl WidthLE<Int<16>> for Int<16>

Source§

impl WidthLE<Int<24>> for Int<1>

Source§

impl WidthLE<Int<24>> for Int<2>

Source§

impl WidthLE<Int<24>> for Int<3>

Source§

impl WidthLE<Int<24>> for Int<4>

Source§

impl WidthLE<Int<24>> for Int<6>

Source§

impl WidthLE<Int<24>> for Int<8>

Source§

impl WidthLE<Int<24>> for Int<12>

Source§

impl WidthLE<Int<24>> for Int<16>

Source§

impl WidthLE<Int<24>> for Int<24>

Source§

impl WidthLE<Int<32>> for Int<1>

Source§

impl WidthLE<Int<32>> for Int<2>

Source§

impl WidthLE<Int<32>> for Int<3>

Source§

impl WidthLE<Int<32>> for Int<4>

Source§

impl WidthLE<Int<32>> for Int<6>

Source§

impl WidthLE<Int<32>> for Int<8>

Source§

impl WidthLE<Int<32>> for Int<12>

Source§

impl WidthLE<Int<32>> for Int<16>

Source§

impl WidthLE<Int<32>> for Int<24>

Source§

impl WidthLE<Int<32>> for Int<32>

Source§

impl WidthLE<Int<48>> for Int<1>

Source§

impl WidthLE<Int<48>> for Int<2>

Source§

impl WidthLE<Int<48>> for Int<3>

Source§

impl WidthLE<Int<48>> for Int<4>

Source§

impl WidthLE<Int<48>> for Int<6>

Source§

impl WidthLE<Int<48>> for Int<8>

Source§

impl WidthLE<Int<48>> for Int<12>

Source§

impl WidthLE<Int<48>> for Int<16>

Source§

impl WidthLE<Int<48>> for Int<24>

Source§

impl WidthLE<Int<48>> for Int<32>

Source§

impl WidthLE<Int<48>> for Int<48>

Source§

impl WidthLE<Int<64>> for Int<1>

Source§

impl WidthLE<Int<64>> for Int<2>

Source§

impl WidthLE<Int<64>> for Int<3>

Source§

impl WidthLE<Int<64>> for Int<4>

Source§

impl WidthLE<Int<64>> for Int<6>

Source§

impl WidthLE<Int<64>> for Int<8>

Source§

impl WidthLE<Int<64>> for Int<12>

Source§

impl WidthLE<Int<64>> for Int<16>

Source§

impl WidthLE<Int<64>> for Int<24>

Source§

impl WidthLE<Int<64>> for Int<32>

Source§

impl WidthLE<Int<64>> for Int<48>

Source§

impl WidthLE<Int<64>> for Int<64>