pub trait Unwrappable<T, R> {
type Output: Debug + PartialEq<R>;
// Required method
fn unwrap_into(self) -> Self::Output;
}Expand description
A trait that can be R, Result<R>, Option<R>, Result<Option<R>>, or
Option<Result<R>> and can unwrap to return R.
Required Associated Types§
Required Methods§
fn unwrap_into(self) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".