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", so this trait is not object safe.

Implementations on Foreign Types§

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

Source§

impl WidthLE<Int192> for i32

Source§

impl WidthLE<Int192> for i64

Source§

impl WidthLE<Int192> for i128

Source§

impl WidthLE<Int256> for i32

Source§

impl WidthLE<Int256> for i64

Source§

impl WidthLE<Int256> for i128

Source§

impl WidthLE<Int384> for i32

Source§

impl WidthLE<Int384> for i64

Source§

impl WidthLE<Int384> for i128

Source§

impl WidthLE<Int512> for i32

Source§

impl WidthLE<Int512> for i64

Source§

impl WidthLE<Int512> for i128

Source§

impl WidthLE<Int768> for i32

Source§

impl WidthLE<Int768> for i64

Source§

impl WidthLE<Int768> for i128

Source§

impl WidthLE<Int1024> for i32

Source§

impl WidthLE<Int1024> for i64

Source§

impl WidthLE<Int1024> for i128

Source§

impl WidthLE<Int1536> for i32

Source§

impl WidthLE<Int1536> for i64

Source§

impl WidthLE<Int1536> for i128

Source§

impl WidthLE<Int2048> for i32

Source§

impl WidthLE<Int2048> for i64

Source§

impl WidthLE<Int2048> for i128

Source§

impl WidthLE<Int3072> for i32

Source§

impl WidthLE<Int3072> for i64

Source§

impl WidthLE<Int3072> for i128

Source§

impl WidthLE<Int4096> for i32

Source§

impl WidthLE<Int4096> for i64

Source§

impl WidthLE<Int4096> for i128

Implementors§

Source§

impl WidthLE<Int192> for Int192

Source§

impl WidthLE<Int256> for Int192

Source§

impl WidthLE<Int256> for Int256

Source§

impl WidthLE<Int384> for Int192

Source§

impl WidthLE<Int384> for Int256

Source§

impl WidthLE<Int384> for Int384

Source§

impl WidthLE<Int512> for Int192

Source§

impl WidthLE<Int512> for Int256

Source§

impl WidthLE<Int512> for Int384

Source§

impl WidthLE<Int512> for Int512

Source§

impl WidthLE<Int768> for Int192

Source§

impl WidthLE<Int768> for Int256

Source§

impl WidthLE<Int768> for Int384

Source§

impl WidthLE<Int768> for Int512

Source§

impl WidthLE<Int768> for Int768

Source§

impl WidthLE<Int1024> for Int192

Source§

impl WidthLE<Int1024> for Int256

Source§

impl WidthLE<Int1024> for Int384

Source§

impl WidthLE<Int1024> for Int512

Source§

impl WidthLE<Int1024> for Int768

Source§

impl WidthLE<Int1024> for Int1024

Source§

impl WidthLE<Int1536> for Int192

Source§

impl WidthLE<Int1536> for Int256

Source§

impl WidthLE<Int1536> for Int384

Source§

impl WidthLE<Int1536> for Int512

Source§

impl WidthLE<Int1536> for Int768

Source§

impl WidthLE<Int1536> for Int1024

Source§

impl WidthLE<Int1536> for Int1536

Source§

impl WidthLE<Int2048> for Int192

Source§

impl WidthLE<Int2048> for Int256

Source§

impl WidthLE<Int2048> for Int384

Source§

impl WidthLE<Int2048> for Int512

Source§

impl WidthLE<Int2048> for Int768

Source§

impl WidthLE<Int2048> for Int1024

Source§

impl WidthLE<Int2048> for Int1536

Source§

impl WidthLE<Int2048> for Int2048

Source§

impl WidthLE<Int3072> for Int192

Source§

impl WidthLE<Int3072> for Int256

Source§

impl WidthLE<Int3072> for Int384

Source§

impl WidthLE<Int3072> for Int512

Source§

impl WidthLE<Int3072> for Int768

Source§

impl WidthLE<Int3072> for Int1024

Source§

impl WidthLE<Int3072> for Int1536

Source§

impl WidthLE<Int3072> for Int2048

Source§

impl WidthLE<Int3072> for Int3072

Source§

impl WidthLE<Int4096> for Int192

Source§

impl WidthLE<Int4096> for Int256

Source§

impl WidthLE<Int4096> for Int384

Source§

impl WidthLE<Int4096> for Int512

Source§

impl WidthLE<Int4096> for Int768

Source§

impl WidthLE<Int4096> for Int1024

Source§

impl WidthLE<Int4096> for Int1536

Source§

impl WidthLE<Int4096> for Int2048

Source§

impl WidthLE<Int4096> for Int3072

Source§

impl WidthLE<Int4096> for Int4096