[][src]Function rdcl_aoc_helpers::handle_result

pub fn handle_result<T, E: Display>(res: Result<T, E>) -> T

Helper method for dealing with results. If a result is an Err, it will print an error message and terminate the process with an exit code of 1.