reintroduce C repr for Num

This commit is contained in:
Corwin 2022-10-09 01:00:56 +01:00
parent 002d409db8
commit b9481116f1

View file

@ -134,6 +134,7 @@ fixed_width_signed_integer_impl!(i32);
/// A fixed point number represented using `I` with `N` bits of fractional precision
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[repr(C)]
pub struct Num<I: FixedWidthUnsignedInteger, const N: usize>(I);
/// An often convenient representation for the Game Boy Advance using word sized