A tuple struct is a Rust struct with unnamed fields. Define one by placing field types in parentheses, as in `pub struct Q7(i8);`. Positional fields keep the representation concise while allowing the type to carry its own behavior and derived traits. section 5.5
Q7 fixed-point value
`Q7(i8)` stores a compact fixed-point value. Deriving `Debug`, `Clone`, `Copy`, `PartialEq`, and `Eq` supplies formatting, duplication, copying, and comparison. Conversion code accesses the internal field as `n.0`, while `From` implementations convert between Q7 and `f32` or `f64`. section 5.5
Listing 5.11 Definition of the Q7 format
#[derive(Debug,Clone,Copy,PartialEq,Eq)] pub struct Q7(i8); #1
Inspect the minimal tuple-struct declaration and its derived traits before following the complete Q7 conversion implementation. section 5.5
