fn repr_discr(
dl: &TargetDataLayout,
repr: &ReprOptions,
min: i128,
max: i128,
) -> Result<(Integer, bool), LayoutError>Expand description
Finds the appropriate Integer type and signedness for the given
signed discriminant range and #[repr] attribute.
N.B.: u128 values above i128::MAX will be treated as signed, but
that shouldn’t affect anything, other than maybe debuginfo.