Rust’s i8 type stores a signed value in one byte. Here, it provides the hidden storage for Q7 fixed-point numbers representing values from −1 to 1 compactly, trading accuracy for space. section 5.5
Using i8 inside Q7
The tuple struct Q7(i8) keeps the byte field private while derived traits provide debugging, copying, and equality. Conversion clamps values at Q7(127) and Q7(−128), then scales values through the i8 representation.
