[][src]Trait debugless_unwrap::DebuglessUnwrap

pub trait DebuglessUnwrap {
    type Unwrapped;
    fn debugless_unwrap(self) -> Self::Unwrapped;
}

Provides .debugless_unwrap() on Result.

Example

use assert_panic::assert_panic;
use debugless_unwrap::DebuglessUnwrap;

struct T;

 let ok = Result::<T, T>::Ok(T);
 let err = Result::<T, T>::Err(T);

ok.debugless_unwrap();

assert_panic!({ err.debugless_unwrap(); });

Associated Types

Loading content...

Required methods

fn debugless_unwrap(self) -> Self::Unwrapped

Loading content...

Implementations on Foreign Types

impl<T, E> DebuglessUnwrap for Result<T, E>[src]

type Unwrapped = T

Loading content...

Implementors

Loading content...