pub trait BitWidthConvertible {
type Width32;
type Width64;
// Required methods
fn to32(self) -> Self::Width32;
fn to64(self) -> Self::Width64;
fn from32(width32: Self::Width32) -> Self;
fn from64(width64: Self::Width64) -> Self;
}Expand description
A trait for converting between different bit-width representations.
Required Associated Types§
Required Methods§
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.