pub trait DebuglessUnwrapNoneExt {
// Required method
fn debugless_unwrap_none(self);
}Expand description
Provides .debugless_unwrap_none() on Option.
§Example
use assert_panic::assert_panic;
use debugless_unwrap::DebuglessUnwrapNoneExt;
struct T;
let some = Some(T);
let none = Option::<T>::None;
none.debugless_unwrap_none();
assert_panic!(some.debugless_unwrap_none());