make guarentee even stronger

This commit is contained in:
Corwin 2022-10-09 11:31:28 +01:00
parent b9481116f1
commit 0be595b47e

View file

@ -134,7 +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)]
#[repr(transparent)]
pub struct Num<I: FixedWidthUnsignedInteger, const N: usize>(I);
/// An often convenient representation for the Game Boy Advance using word sized