Function uerr::unwrap_io

source · []
pub fn unwrap_io<T>(msg: &str, res: Result<T>) -> T
Expand description

Unwrap the value contained within the given Result and return it, else print the contained std::io::Error and exit the process.

See [std::process::exit(i32)].