pub trait Unwrap: Sealed {
type Out;
// Required methods
fn unwrap(self) -> Self::Out;
fn expect(self, msg: &str) -> Self::Out;
}Expand description
This trait is implemented for Option and Result types.
This trait is sealed.
pub trait Unwrap: Sealed {
type Out;
// Required methods
fn unwrap(self) -> Self::Out;
fn expect(self, msg: &str) -> Self::Out;
}This trait is implemented for Option and Result types.
This trait is sealed.