pub trait OptionExt<T>: Sized {
// Required method
unsafe fn strict_unwrap_unchecked(self) -> T;
}Expand description
Extend functions for Option.
Required Methods§
Sourceunsafe fn strict_unwrap_unchecked(self) -> T
unsafe fn strict_unwrap_unchecked(self) -> T
Use unwrap_unchecked by default. Use unwrap when feature “strict_assertions” is enabled.
§Safety
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.