Trait sfwtools::error::SfwRes [−][src]
pub trait SfwRes<T, E: Display> { fn unwrap_or_else<F: FnOnce(E) -> T>(self, op: F) -> T; fn user_err(self, fstr: &str) -> T
where
Self: Sized, { ... } }
Required methods
fn unwrap_or_else<F: FnOnce(E) -> T>(self, op: F) -> T
[src]
Provided methods
fn user_err(self, fstr: &str) -> T where
Self: Sized,
[src]
Self: Sized,
Intended for use late in execution (e.g. in binaries), so that the program immediately exits with a user-friendly error message.