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§
Sourcefn widen_into(self) -> Target
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.