Trait wallswitch::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§