pub trait MachineWord:
PrimInt
+ OverflowingAdd
+ OverflowingSub
+ From<u8>
+ BitAndAssign
+ BitOrAssign
+ BitXorAssign
+ FromBytes
+ ToBytes
+ Default {
type DoubleWord: PrimInt;
// Required methods
fn to_double(self) -> Self::DoubleWord;
fn from_double(word: Self::DoubleWord) -> Self;
}
Expand description
Represents a CPU native word, from 8-bit to 32-bit, with corresponding double-word to hold multiplication/division products.
Required Associated Types§
type DoubleWord: PrimInt
Required Methods§
fn to_double(self) -> Self::DoubleWord
fn from_double(word: Self::DoubleWord) -> Self
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.