pub trait DebuglessUnwrapErrExt {
type Unwrapped;
// Required method
fn debugless_unwrap_err(self) -> Self::Unwrapped;
}Expand description
Provides .debugless_unwrap_err() on Result.
§Example
use assert_panic::assert_panic;
use debugless_unwrap::DebuglessUnwrapErrExt;
struct T;
let ok = Result::<T, T>::Ok(T);
let err = Result::<T, T>::Err(T);
err.debugless_unwrap_err();
assert_panic!({ ok.debugless_unwrap_err(); });