pub trait UnwrapExt {
type T;
// Required methods
fn unwrap_fatal(self) -> Self::T;
fn expect_fatal(self, message: impl Display) -> Self::T;
}
Expand description
An extension trait for unwrap
.
Required Associated Types§
Required Methods§
Sourcefn unwrap_fatal(self) -> Self::T
fn unwrap_fatal(self) -> Self::T
An extension synonym for unwrap
.
Sourcefn expect_fatal(self, message: impl Display) -> Self::T
fn expect_fatal(self, message: impl Display) -> Self::T
An extension synonym for expect
.
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.