ResultExt

Trait ResultExt 

Source
pub trait ResultExt<T> {
    // Required method
    fn unwrap_result(self) -> T;
}
Expand description

Result Extension

Required Methods§

Source

fn unwrap_result(self) -> T

If OK, unwrap Result<T, Error> to the value T.

If Error, terminate the current process with error messages.

Implementations on Foreign Types§

Source§

impl<T, E: Display> ResultExt<T> for Result<T, E>

Source§

fn unwrap_result(self) -> T

Implementors§