Skip to main content

catch_with_exit_code

Function catch_with_exit_code 

pub fn catch_with_exit_code<T>(f: impl FnOnce() -> T) -> ExitCode
where T: Termination,
Expand description

Variant of catch_fatal_errors for the interface::Result return type that also computes the exit code.