Makes fields in signed integers and fixed point numbers private
Adds Self::zero(), self::is_zero(), and self::underlying() to signed integers and fixed point numbers
Breaking Changes
Public struct fields are now PRIVATE in the fixed_point and signed_integers libraries. If the fields are needed, they can be fetched with a corresponding my_type.underlying() function. For example, I8's underlying u8 may be fetched with:
let my_i8: I8 = I8::zero();
let underlying: u8 = my_i8.underlying();
For types that have a non_negative field, the same applies:
let my_ifp64: IFP64 = IFP64::zero();
let non_negative: bool = my_ifp64.non_negative();
Type of change
Changes
The following changes have been made:
Self::zero()
,self::is_zero()
, andself::underlying()
to signed integers and fixed point numbersBreaking Changes
Public struct fields are now PRIVATE in the
fixed_point
andsigned_integers
libraries. If the fields are needed, they can be fetched with a correspondingmy_type.underlying()
function. For example,I8
's underlyingu8
may be fetched with:For types that have a
non_negative
field, the same applies: