pub trait UnwrapInfallible {
type Output;
// Required method
fn unwrap_infallible(self) -> Self::Output;
}Expand description
Extension for unwrapping a Result whose error type is Infallible.
Required Associated Types§
Required Methods§
Sourcefn unwrap_infallible(self) -> Self::Output
fn unwrap_infallible(self) -> Self::Output
Unwrap a Result<T, Infallible> without a possible panic path.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".