Trait compiler_builtins::int::DInt
source · pub(crate) trait DInt: Int {
type H: HInt<D = Self> + Int;
// Required methods
fn lo(self) -> Self::H;
fn hi(self) -> Self::H;
fn lo_hi(self) -> (Self::H, Self::H);
fn from_lo_hi(lo: Self::H, hi: Self::H) -> Self;
}
Expand description
Trait for integers twice the bit width of another integer. This is implemented for all
primitives except for u8
, because there is not a smaller primitive.
Required Associated Types§
Required Methods§
sourcefn from_lo_hi(lo: Self::H, hi: Self::H) -> Self
fn from_lo_hi(lo: Self::H, hi: Self::H) -> Self
Constructs an integer using lower and higher half parts