pub trait UnwrapExt {
type Output;
// Required method
fn unwrap_all(self) -> Self::Output;
}
Expand description
Extension for unwrap
methods.
Required Associated Types§
Required Methods§
Sourcefn unwrap_all(self) -> Self::Output
fn unwrap_all(self) -> Self::Output
unwrap
the value.
§Example
use rs_std_ext::unwrap::UnwrapExt;
let val: Result<Option<i32>, &str> = Ok(Some(10));
assert_eq!(
10,
val.unwrap_all()
)