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());Required Methods§
fn debugless_unwrap_none(self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".