pub fn report_to_exit_code(report: &Report) -> ExitCodeExpand description
Render report and map it to a process exit code.
Prints the diagnostic through the installed handler (matching what
Termination for Result<(), Report> does) and honours a code attached
via rtb_error::WithExitCode (default 1).
Exposed so a binary’s main can map a builder error — raised before
Application::run_and_exit is reachable — to the same exit path.