[−][src]Function failure_tools::ok_or_exit
pub fn ok_or_exit<T, E>(r: Result<T, E>) -> T where
E: Into<Error>,
If the Result
is Ok(v)
, return v
. Otherwise print_causes()
and exit with exit code 1.
pub fn ok_or_exit<T, E>(r: Result<T, E>) -> T where
E: Into<Error>,
If the Result
is Ok(v)
, return v
. Otherwise print_causes()
and exit with exit code 1.