pub fn emit(def: &DecoderDef, output: &str) -> Result<(), Box<dyn Error>>
Validate a parsed definition and write generated Rust code to a file.
Returns validation or I/O errors.